Skip to content

Commit

Permalink
FIX: Pacify deprecation warning from scipy.stats (#309)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
oesteban and effigies authored Dec 6, 2022
1 parent a2bc54c commit f7d9095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcflows/interfaces/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _run_interface(self, runtime):
if self.inputs.recenter == "mode":
from scipy.stats import mode

data -= mode(data[mask], axis=None)[0][0]
data -= mode(data[mask], keepdims=False).mode
elif self.inputs.recenter == "median":
data -= np.median(data[mask])
elif self.inputs.recenter == "mean":
Expand Down

0 comments on commit f7d9095

Please sign in to comment.