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.
2 parents 5ef205f + efa3528 commit 3f29105Copy full SHA for 3f29105
sdcflows/interfaces/utils.py
@@ -137,7 +137,12 @@ def _run_interface(self, runtime):
137
nii.__class__(nii.dataobj, refaff, nii.header).to_filename(retval[i])
138
continue
139
140
- resampler.apply(nii).to_filename(retval[i])
+ # Hack around nitransforms' unsafe cast by dropping get_data_dtype that conflicts
141
+ # with effective dtype
142
+ # NT23_0_1: Isssue in nitransforms.base.TransformBase.apply
143
+ regridded_img = resampler.apply(nii.__class__(np.asanyarray(nii.dataobj), nii.affine))
144
+ # Restore the original on-disk data type
145
+ nii.__class__(regridded_img.dataobj, refaff, nii.header).to_filename(retval[i])
146
147
self._results["out_data"] = retval
148
0 commit comments