Skip to content

Commit

Permalink
Merge pull request #247 from NREL/bnb/1d_nc_loading
Browse files Browse the repository at this point in the history
Bnb/1d nc loading
  • Loading branch information
bnb32 authored Dec 4, 2024
2 parents 4430b36 + 164ae44 commit e38597a
Show file tree
Hide file tree
Showing 13 changed files with 525 additions and 192 deletions.
5 changes: 2 additions & 3 deletions sup3r/bias/bias_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,9 @@ def local_qdm_bc(
if out_range is not None:
data_unbiased = np.maximum(data_unbiased, np.min(out_range))
data_unbiased = np.minimum(data_unbiased, np.max(out_range))

if da.isnan(data_unbiased).any():
if not da.isfinite(data_unbiased).all():
msg = (
'QDM bias correction resulted in NaN values! If this is a '
'QDM bias correction resulted in NaN / inf values! If this is a '
'relative QDM, you may try setting ``delta_denom_min`` or '
'``delta_denom_zero``'
)
Expand Down
Loading

0 comments on commit e38597a

Please sign in to comment.