Skip to content

Commit

Permalink
try that fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
bolliger32 committed Nov 16, 2024
1 parent e7173c9 commit 592894c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pyCIAM/surge/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,24 +149,15 @@ def _get_lslr_rhdiff_range(
# occasionally, the gumbel fit was negative, so we set the 1-year return to 0
assert (rh_diff_max > 0).all()

seg_vals = pc_in[seg_var].values
return xr.Dataset(
{
"lslr_by_seg": (
("lslr", seg_var),
np.repeat(
np.linspace(min_lslr, max_lslr, n_interp_pts_lslr)[:, np.newaxis],
len(seg_vals),
axis=1,
),
np.linspace(min_lslr.values, max_lslr.values, n_interp_pts_lslr),
),
"rh_diff_by_seg": (
("rh_diff", seg_var),
np.repeat(
np.linspace(0, rh_diff_max, n_interp_pts_rhdiff)[:, np.newaxis],
len(seg_vals),
axis=1,
),
np.linspace(0, rh_diff_max.values, n_interp_pts_rhdiff),
),
"lslr": np.arange(n_interp_pts_lslr),
"rh_diff": np.arange(n_interp_pts_lslr),
Expand Down

0 comments on commit 592894c

Please sign in to comment.