We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8e2b7 commit d64485eCopy full SHA for d64485e
sdcflows/interfaces/fmap.py
@@ -574,10 +574,10 @@ def au2rads(in_file, newpath=None):
574
data -= mode(data, axis=None)[0][0]
575
576
# Scale lower tail
577
- data[data < 0] = - np.pi * data[data < 0] / np.percentile(data[data < 0], 2)
+ data[data < 0] = - np.pi * data[data < 0] / data[data < 0].min()
578
579
# Scale upper tail
580
- data[data > 0] = np.pi * data[data > 0] / np.percentile(data[data > 0], 98)
+ data[data > 0] = np.pi * data[data > 0] / data[data > 0].max()
581
582
# Offset to 0 - 2pi
583
data += np.pi
0 commit comments