Skip to content

Commit 4387136

Browse files
committed
added squeeze of 1 comp dimensions
1 parent 140f4b6 commit 4387136

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ class ErrorMap(BaseInterface):
435435

436436
def _run_interface( self, runtime ):
437437
nii_ref = nb.load( self.inputs.in_ref )
438-
ref_data = nii_ref.get_data()
439-
tst_data = nb.load( self.inputs.in_tst ).get_data()
438+
ref_data = np.squeeze( nii_ref.get_data() )
439+
tst_data = np.squeeze( nb.load( self.inputs.in_tst ).get_data() )
440440

441441
assert( ref_data.ndim == tst_data.ndim )
442442

@@ -456,7 +456,7 @@ def _run_interface( self, runtime ):
456456

457457
if ( mapshape != msk.shape ):
458458
raise RuntimeError( "Mask should match volume shape, \
459-
mask is %s and volume is %s" %
459+
mask is %s and volumes are %s" %
460460
( list(msk.shape), list(mapshape) ) )
461461

462462
mskvector = msk.reshape(-1)

0 commit comments

Comments
 (0)