Skip to content
Snippets Groups Projects
Commit c3a9ebac authored by Martin Craig's avatar Martin Craig
Browse files

Allow subclasses of Image (and Nifti1Image) to be passed as parameters

parent ca547bee
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment