diff --git a/nimare/meta/kernel.py b/nimare/meta/kernel.py index 837c04167..2b520b005 100644 --- a/nimare/meta/kernel.py +++ b/nimare/meta/kernel.py @@ -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