Commit 34084a75 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: more detailed error message

parent 0182c2b2
......@@ -622,8 +622,9 @@ class Nifti(notifier.Notifier, meta.Meta):
if from_ not in ('voxel', 'fsl', 'world') or \
to not in ('voxel', 'fsl', 'world'):
raise ValueError('Invalid source/reference spaces: '
'{} -> {}'.format(from_, to))
raise ValueError('Invalid source/reference spaces: "{}" -> "{}".'
'Recognised spaces are "voxel", "fsl", and '
'"world"'.format(from_, to))
return np.copy(self.__affines[from_, to])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment