Skip to content

Commit c0e7f27

Browse files
authored
Update nitransforms/linear.py
1 parent db1b250 commit c0e7f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitransforms/linear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def apply(
448448
spatialimage = _nbload(str(spatialimage))
449449

450450
# Avoid opening the data array just yet
451-
input_dtype = spatialimage.header.get_data_dtype()
451+
input_dtype = nb.arrayproxy.get_obj_dtype(spatialimage.dataobj)
452452
output_dtype = output_dtype or input_dtype
453453

454454
# Prepare physical coordinates of input (grid, points)

0 commit comments

Comments
 (0)