Skip to content

Commit

Permalink
feat: Missing opportunity at local_qdm_bc() to define threshold
Browse files Browse the repository at this point in the history
Before it would necessarily only use the default.
  • Loading branch information
castelao committed Apr 18, 2024
1 parent fd8f2f0 commit 3c35869
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sup3r/bias/bias_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def local_qdm_bc(data: np.array,
base_dset: str,
feature_name: str,
bias_fp,
threshold=0.1,
relative=True,
no_trend=False):
"""Bias correction using QDM
Expand Down Expand Up @@ -482,7 +483,8 @@ def local_qdm_bc(data: np.array,
base, bias, bias_fut, cfg = get_spatial_bc_quantiles(lat_lon,
base_dset,
feature_name,
bias_fp)
bias_fp,
threshold)

if no_trend:
mf = None
Expand Down
5 changes: 3 additions & 2 deletions sup3r/preprocessing/data_handling/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,8 +1376,9 @@ def qdm_bc(self,
self.lat_lon,
reference_feature,
feature,
fp,
relative)
bias_fp=fp,
threshold=threshold,
relative=relative)
completed.append(feature)


Expand Down

0 comments on commit 3c35869

Please sign in to comment.