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