Skip to content

Commit 140f4b6

Browse files
committed
more informative message
1 parent e8f8f5f commit 140f4b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/algorithms/eval.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ def _run_interface( self, runtime ):
455455
msk = nb.load( self.inputs.mask ).get_data()
456456

457457
if ( mapshape != msk.shape ):
458-
raise RuntimeError( "Mask should match volume shape")
458+
raise RuntimeError( "Mask should match volume shape, \
459+
mask is %s and volume is %s" %
460+
( list(msk.shape), list(mapshape) ) )
459461

460462
mskvector = msk.reshape(-1)
461463
refvector = refvector * mskvector[:,np.newaxis]

0 commit comments

Comments
 (0)