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 756088a commit 81167caCopy full SHA for 81167ca
nipype/algorithms/stats.py
@@ -43,11 +43,10 @@ class ACM(SimpleInterface):
43
def _run_interface(self, runtime):
44
allmaps = nb.concat_images(
45
[nb.load(f) for f in self.inputs.in_files]).get_data()
46
- acm_pos = (allmaps > self.inputs.threshold).astype(
47
- float).mean(3)
48
- acm_neg = (allmaps < -1.0 * self.inputs.threshold).astype(
49
50
-
+ acm_pos = np.mean(allmaps > self.inputs.threshold,
+ axis=3, dtype=np.float32)
+ acm_neg = np.mean(allmaps < -1.0 * self.inputs.threshold,
51
acm_diff = acm_pos - acm_neg
52
53
nii = nb.load(self.inputs.in_files[0])
0 commit comments