Skip to content

Commit 098004e

Browse files
josephmjeoesteban
andcommitted
Update dmriprep/utils/images.py
Co-Authored-By: Oscar Esteban <[email protected]>
1 parent da9daad commit 098004e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dmriprep/utils/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def median(in_file, dtype=None, out_path=None):
5656
nb.squeeze_image(img).to_filename(out_path)
5757
return out_path
5858

59-
median_data = np.median(img.get_fdata(dtype='float32'),
59+
median_data = np.median(img.get_fdata(dtype=dtype),
6060
axis=-1)
6161

6262
hdr = img.header.copy()

0 commit comments

Comments
 (0)