Skip to content

Commit

Permalink
add explicit dtype when creating image
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Jan 9, 2024
1 parent a412049 commit 434f848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimare/meta/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def transform(self, dataset, masker=None, return_type="image"):
imgs.append(img)
elif return_type == "image":
kernel_data *= mask_data
img = nib.Nifti1Image(kernel_data, mask.affine)
img = nib.Nifti1Image(kernel_data, mask.affine, dtype=kernel_data.dtype)
imgs.append(img)

del kernel_data, transformed_maps
Expand Down

0 comments on commit 434f848

Please sign in to comment.