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 da9daad commit 098004eCopy full SHA for 098004e
dmriprep/utils/images.py
@@ -56,7 +56,7 @@ def median(in_file, dtype=None, out_path=None):
56
nb.squeeze_image(img).to_filename(out_path)
57
return out_path
58
59
- median_data = np.median(img.get_fdata(dtype='float32'),
+ median_data = np.median(img.get_fdata(dtype=dtype),
60
axis=-1)
61
62
hdr = img.header.copy()
0 commit comments