Skip to content

Commit ddf1571

Browse files
authored
Merge pull request #216 from theendlessriver13/numpy-1-24
fix compatibility issue with numpy 1.24
2 parents d05f76e + e74d14a commit ddf1571

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
matplotlib >=3
2-
numpy
2+
numpy >=1.21
33
pandas
44
scipy

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ zip_safe = True
3232
include_package_data = True
3333
install_requires =
3434
matplotlib >=3
35-
numpy >=1.19
35+
numpy >=1.21
3636
python_requires = >=3.6
3737
packages = find:
3838

windrose/windrose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def histogram(direction, var, bins, nsector, normed=False, blowto=False):
799799
direction = direction + 180.0
800800
direction[direction >= 360.0] = direction[direction >= 360.0] - 360
801801

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

0 commit comments

Comments
 (0)