We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdffaf0 commit dc41e2dCopy full SHA for dc41e2d
pyCIAM/utils.py
@@ -94,8 +94,7 @@ def _get_lslr_plan_data(
94
if diaz_negative_retreat:
95
RH_heights = _pos(RH_heights)
96
else:
97
- for i in range(1, len(RH_heights.at)):
98
- RH_heights[{"at": i}] = RH_heights.isel(at=slice(None, i + 1)).max("at")
+ RH_heights = RH_heights.cumulative("at").max()
99
100
# set initial RH_heights to 0 (e.g.
101
# assuming no retreat or protection anywhere such that both w/ and w/o climate
0 commit comments