Skip to content

Commit 2c36d08

Browse files
authored
fix: missing import
1 parent c0e7f27 commit 2c36d08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nitransforms/linear.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from nibabel.loadsave import load as _nbload
1616
from nibabel.affines import from_matvec
17+
from nibabel.arrayproxy import get_obj_dtype
1718

1819
from nitransforms.base import (
1920
ImageGrid,
@@ -448,7 +449,7 @@ def apply(
448449
spatialimage = _nbload(str(spatialimage))
449450

450451
# Avoid opening the data array just yet
451-
input_dtype = nb.arrayproxy.get_obj_dtype(spatialimage.dataobj)
452+
input_dtype = get_obj_dtype(spatialimage.dataobj)
452453
output_dtype = output_dtype or input_dtype
453454

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

0 commit comments

Comments
 (0)