From aaa69ddb0d44713f89d8d1a501755af791dbe9dc Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Thu, 16 Nov 2023 23:55:39 +0100 Subject: [PATCH] Update nitransforms/linear.py --- nitransforms/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitransforms/linear.py b/nitransforms/linear.py index fcee7432..dc231085 100644 --- a/nitransforms/linear.py +++ b/nitransforms/linear.py @@ -492,7 +492,7 @@ def apply( ( dataobj if dataobj is not None - else np.asanyarray(spatialimage.dataobj[..., t], dtype=input_dtype) + else spatialimage.dataobj[..., t].astype(input_dtype, copy=False), ), yvoxels.T, output=output_dtype,