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
......@@ -655,8 +655,11 @@ def fileOrImage(*imgargs):
infile = None
if isinstance(val, (fslimage.Image, nib.nifti1.Nifti1Image)):
if isinstance(val, fslimage.Image):
elif isinstance(val, nib.nifti1.Nifti1Image):
if isinstance(val, fslimage.Image):
val = val.nibImage
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