FIX: Ensure data type of masked image matches T1.mgz
@@ -376,7 +376,7 @@ def inject_skullstripped(subjects_dir, subject_id, skullstripped):
mask = nb.load(skullstripped)
bmask = new_img_like(mask, np.asanyarray(mask.dataobj) > 0)
resampled_mask = resample_to_img(bmask, img, 'nearest')
- masked_image = new_img_like(img, img.get_fdata() * resampled_mask.dataobj)
+ masked_image = new_img_like(img, np.asanyarray(img.dataobj) * resampled_mask.dataobj)
masked_image.to_filename(bm_auto)
if not op.exists(bm):
