Skip to content

Commit d148e85

Browse files
oestebaneffigies
andcommitted
fix: access __getitem__ directly
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent a6fe3eb commit d148e85

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
@@ -492,7 +492,7 @@ def apply(
492492
(
493493
dataobj
494494
if dataobj is not None
495-
else np.asanyarray(spatialimage.dataobj[..., t], dtype=input_dtype)
495+
else spatialimage.dataobj[..., t].astype(input_dtype, copy=False)
496496
),
497497
yvoxels.T,
498498
output=output_dtype,

0 commit comments

Comments
 (0)