Skip to content
Snippets Groups Projects
Commit 4a5f3dcc authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Image class will not ignore the xform if a header is also provided

parent 556369d3
No related branches found
No related tags found
No related merge requests found
......@@ -551,8 +551,9 @@ class Image(Nifti, notifier.Notifier):
# to 1mm^3 in real world space)
elif isinstance(image, np.ndarray):
if header is not None: xform = header.get_best_affine()
elif xform is None: xform = np.identity(4)
if xform is None:
if header is not None: xform = header.get_best_affine()
else: xform = np.identity(4)
# We default to NIFTI1 and not
# NIFTI2, because the rest of
......
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