Skip to content

Commit

Permalink
Merge pull request #3147 from pllim/np2.1-float
Browse files Browse the repository at this point in the history
Fix dtype error with numpy 2.1
  • Loading branch information
pllim authored Aug 13, 2024
2 parents 3bf4223 + 97cf3dd commit 346d22c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _round_step(step):
decimals = -int(np.log10(abs(step))) + 1 if step != 0 else 6
if decimals < 0:
decimals = 0
return np.round(step, decimals), decimals
return float(np.round(step, decimals)), decimals


@tray_registry('g-plot-options', label="Plot Options")
Expand Down

0 comments on commit 346d22c

Please sign in to comment.