Skip to content

Commit

Permalink
Bugfix in empirical quantile mapping code: order of mapping and type …
Browse files Browse the repository at this point in the history
…checking for distribution type
  • Loading branch information
jakobwes committed Mar 7, 2024
1 parent b8cadd2 commit e54f7a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibicus/debias/_quantile_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class QuantileMapping(RunningWindowDebiaser):
scipy.stats.rv_discrete,
scipy.stats.rv_histogram,
StatisticalModel,
type(None),
)
),
)
Expand Down Expand Up @@ -261,7 +262,7 @@ def _standard_qm(self, x, obs, cm_hist):
)
elif self.mapping_type == "nonparametric":
return quantile_map_non_parametically_with_constant_extrapolation(
obs, cm_hist, x
x=cm_hist, y=obs, vals=x
)
else:
raise ValueError(
Expand Down

0 comments on commit e54f7a0

Please sign in to comment.