From e1165a8d648a72cc7fe722519a99241479112c3b Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Thu, 16 May 2024 15:54:46 -0400 Subject: [PATCH] fix: the original locations should be an ndarray --- nitransforms/nonlinear.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nitransforms/nonlinear.py b/nitransforms/nonlinear.py index 69c19d35..e3a984b1 100644 --- a/nitransforms/nonlinear.py +++ b/nitransforms/nonlinear.py @@ -163,6 +163,8 @@ def map(self, x, inverse=False): if inverse is True: raise NotImplementedError + + x = np.array(x) ijk = self.reference.index(x) indexes = np.round(ijk).astype("int")