Skip to content

Commit 5bf26e5

Browse files
mgxdeffigies
authored andcommitted
Update niworkflows/viz/utils.py
1 parent 0b3a6ae commit 5bf26e5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

niworkflows/viz/utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,9 +720,3 @@ def plot_melodic_components(
720720
pad_inches=0.01,
721721
)
722722
fig.clf()
723-
724-
725-
def _ensure_nii(img: nb.spatialimages.SpatialImage) -> nb.Nifti1Image:
726-
if not isinstance(img, nb.Nifti1Image):
727-
img = nb.Nifti1Image(img.dataobj, img.affine, img.header)
728-
return img

0 commit comments

Comments
 (0)