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
c3a9ebac
Commit
c3a9ebac
authored
Jul 10, 2018
by
Martin Craig
Browse files
Allow subclasses of Image (and Nifti1Image) to be passed as parameters
parent
ca547bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/wrappers/wrapperutils.py
View file @
c3a9ebac
...
...
@@ -655,8 +655,11 @@ def fileOrImage(*imgargs):
infile
=
None
if
isinstance
(
val
,
(
fslimage
.
Image
,
nib
.
nifti1
.
Nifti1Image
)):
intypes
.
append
(
type
(
val
))
if
isinstance
(
val
,
fslimage
.
Image
):
intypes
.
append
(
fslimage
.
Image
)
elif
isinstance
(
val
,
nib
.
nifti1
.
Nifti1Image
):
intypes
.
append
(
nib
.
nifti1
.
Nifti1Image
)
if
isinstance
(
val
,
fslimage
.
Image
):
val
=
val
.
nibImage
...
...
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