Skip to content

Commit

Permalink
Remove debugging print
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal committed Jan 23, 2024
1 parent bad8f84 commit ab481ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xclim/indices/run_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,14 +1005,12 @@ def first_run_after_date(
if mid_idx.size == 0: # The date is not within the group. Happens at boundaries.
return xr.full_like(da.isel({dim: 0}), np.nan, float).drop_vars(dim)

out = first_run(
return first_run(
da.where(da[dim] >= da[dim][mid_idx][0]),
window=window,
dim=dim,
coord=coord,
)
print(out)
return out


def last_run_before_date(
Expand Down

0 comments on commit ab481ca

Please sign in to comment.