Skip to content

Commit

Permalink
Merge pull request #20 from mu40/numpy-warning
Browse files Browse the repository at this point in the history
Fix NumPy deprecation warning.
  • Loading branch information
avnishks authored Jan 11, 2024
2 parents 84a9850 + 6cf7e08 commit 0d83332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfa/core/framed.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def percentile(self, percentiles, method='linear', nonzero=False):
data = self.data
if nonzero:
data = data[data.nonzero()]
return np.percentile(data, percentiles, interpolation=method)
return np.percentile(data, percentiles, method=method)

def clip(self, a_min, a_max):
"""
Expand Down

0 comments on commit 0d83332

Please sign in to comment.