Skip to content

Commit

Permalink
Merge pull request #407 from DHI/numpy-2
Browse files Browse the repository at this point in the history
Prepare for NumPy 2
  • Loading branch information
ecomodeller authored Jan 29, 2024
2 parents e86009a + faf180f commit b37a539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelskill/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def make_unique_index(
"Time axis has duplicate entries. Now adding milliseconds to non-unique entries to make index unique."
)
values = df_index.duplicated(keep=False).astype(float) # keep='first'
values[values == 0] = np.NaN
values[values == 0] = np.nan

missings = np.isnan(values)
cumsum = np.cumsum(~missings)
Expand Down

0 comments on commit b37a539

Please sign in to comment.