Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
295013df
Commit
295013df
authored
Apr 14, 2020
by
Paul McCarthy
🚵
Browse files
MNT: more detailed error message
parent
d5f5cb14
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/image.py
View file @
295013df
...
...
@@ -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
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment