File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -435,8 +435,8 @@ class ErrorMap(BaseInterface):
435
435
436
436
def _run_interface ( self , runtime ):
437
437
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 () )
440
440
441
441
assert ( ref_data .ndim == tst_data .ndim )
442
442
@@ -456,7 +456,7 @@ def _run_interface( self, runtime ):
456
456
457
457
if ( mapshape != msk .shape ):
458
458
raise RuntimeError ( "Mask should match volume shape, \
459
- mask is %s and volume is %s" %
459
+ mask is %s and volumes are %s" %
460
460
( list (msk .shape ), list (mapshape ) ) )
461
461
462
462
mskvector = msk .reshape (- 1 )
You can’t perform that action at this time.
0 commit comments