Skip to content

Commit

Permalink
Merge pull request #20 from NonStopAggroPop/patch-1
Browse files Browse the repository at this point in the history
Numpy type deprecation
  • Loading branch information
mmhs013 authored Jun 25, 2021
2 parents 74bc494 + 9c14985 commit c2be737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymannkendall/pymannkendall.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Supporting Functions
# Data Preprocessing
def __preprocessing(x):
x = np.asarray(x).astype(np.float)
x = np.asarray(x).astype(float)
dim = x.ndim

if dim == 1:
Expand Down Expand Up @@ -748,4 +748,4 @@ def partial_test(x_old, alpha = 0.05):
p, h, trend = __p_value(z, alpha)
slope, intercept = sens_slope(x_old[:,0])

return res(trend, h, p, z, Tau, s, var_s, slope, intercept)
return res(trend, h, p, z, Tau, s, var_s, slope, intercept)

0 comments on commit c2be737

Please sign in to comment.