Skip to content

Commit

Permalink
refactor var name
Browse files Browse the repository at this point in the history
  • Loading branch information
coxipi committed Nov 28, 2024
1 parent ddba143 commit 880f98c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xclim/sdba/_adjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,10 @@ def _otc_adjust(
out += np.random.uniform(low=-bin_width / 2, high=bin_width / 2, size=out.shape)

# reintroduce nans
Xadj = X_og
Xadj[mask] = out
Xadj[~mask] = np.nan
return Xadj
Z = X_og
Z[mask] = out
Z[~mask] = np.nan
return Z


@map_groups(scen=[Grouper.DIM])
Expand Down

0 comments on commit 880f98c

Please sign in to comment.