We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfe9bb commit da9daadCopy full SHA for da9daad
dmriprep/utils/images.py
@@ -61,6 +61,7 @@ def median(in_file, dtype=None, out_path=None):
61
62
hdr = img.header.copy()
63
hdr.set_xyzt_units('mm')
64
- hdr.set_data_dtype(np.float32)
+ if dtype is not None:
65
+ hdr.set_data_dtype(dtype)
66
nb.Nifti1Image(median_data, img.affine, hdr).to_filename(out_path)
67
return out_path
0 commit comments