Skip to content

Commit

Permalink
fix np.float deprecation warning (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkittner authored Nov 1, 2021
1 parent b018e46 commit 6ad49a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windrose/windrose.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def histogram(direction, var, bins, nsector, normed=False, blowto=False):

angle = 360. / nsector

dir_bins = np.arange(-angle / 2, 360. + angle, angle, dtype=np.float)
dir_bins = np.arange(-angle / 2, 360. + angle, angle, dtype=float)
dir_edges = dir_bins.tolist()
dir_edges.pop(-1)
dir_edges[0] = dir_edges.pop(-1)
Expand Down

0 comments on commit 6ad49a2

Please sign in to comment.