Skip to content

Commit

Permalink
fix deep issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcblemai committed Apr 25, 2024
1 parent dde5513 commit dab784e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flepimop/gempyor_pkg/src/gempyor/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,16 @@ def parameters_reduce(self, p_draw: ndarray, npi: object) -> ndarray:
p_reduced = copy.deepcopy(p_draw)
if npi is not None:
for idx, pn in enumerate(self.pnames):
p_reduced[idx] = NPI.reduce_parameter(
npi_val = NPI.reduce_parameter(
parameter=p_draw[idx],
modification=npi.getReduction(pn.lower()),
method=self.pdata[pn]["stacked_modifier_method"],
)
p_reduced[idx] = npi_val
# apply rolling mean if specified
if "rolling_mean_windows" in self.pdata[pn]:
p_reduced[idx] = utils.rolling_mean_pad(
data=p_reduced[idx], window=self.pdata[pn]["rolling_mean_windows"]
data=npi_val, window=self.pdata[pn]["rolling_mean_windows"]
)

return p_reduced

0 comments on commit dab784e

Please sign in to comment.