Skip to content

Commit 756088a

Browse files
committed
fix several issues
1 parent f6a9a81 commit 756088a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ class ACM(SimpleInterface):
4242

4343
def _run_interface(self, runtime):
4444
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(
45+
[nb.load(f) for f in self.inputs.in_files]).get_data()
46+
acm_pos = (allmaps > self.inputs.threshold).astype(
4747
float).mean(3)
48-
acm_neg = np.where(allmaps < -1.0 * self.inputs.threshold).astype(
48+
acm_neg = (allmaps < -1.0 * self.inputs.threshold).astype(
4949
float).mean(3)
5050

5151
acm_diff = acm_pos - acm_neg

0 commit comments

Comments
 (0)