Skip to content

Commit

Permalink
Merge pull request #216 from theendlessriver13/numpy-1-24
Browse files Browse the repository at this point in the history
fix compatibility issue with numpy 1.24
  • Loading branch information
ocefpaf authored Dec 20, 2022
2 parents d05f76e + e74d14a commit ddf1571
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib >=3
numpy
numpy >=1.21
pandas
scipy
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ zip_safe = True
include_package_data = True
install_requires =
matplotlib >=3
numpy >=1.19
numpy >=1.21
python_requires = >=3.6
packages = find:

Expand Down
2 changes: 1 addition & 1 deletion windrose/windrose.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def histogram(direction, var, bins, nsector, normed=False, blowto=False):
direction = direction + 180.0
direction[direction >= 360.0] = direction[direction >= 360.0] - 360

table = histogram2d(x=var, y=direction, bins=[var_bins, dir_bins], normed=False)[0]
table = histogram2d(x=var, y=direction, bins=[var_bins, dir_bins], density=False)[0]
# add the last value to the first to have the table of North winds
table[:, 0] = table[:, 0] + table[:, -1]
# and remove the last col
Expand Down

0 comments on commit ddf1571

Please sign in to comment.