From d644269fc5447d5e83983c2fdbceb3b432c5aa28 Mon Sep 17 00:00:00 2001
From: sandraha <sandraha@ethz.ch>
Date: Mon, 18 Dec 2023 12:08:09 +0100
Subject: [PATCH] fixed tolerance level error in update function of
 LocalLookREST

---
 cmrsim/analytic/contrast/_spatial.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmrsim/analytic/contrast/_spatial.py b/cmrsim/analytic/contrast/_spatial.py
index 4f35257..b89a265 100644
--- a/cmrsim/analytic/contrast/_spatial.py
+++ b/cmrsim/analytic/contrast/_spatial.py
@@ -250,9 +250,9 @@ class LocalLookREST(BaseSignalModel):
                              f"{orthonormality_bool} \n {orthonormality}")
 
     def update(self):
-        self._validate_shapes(self.orientation_matrix.read_value()[:, 0],
-                              self.orientation_matrix.read_value()[:, 1],
-                              self.orientation_matrix.read_value()[:, 2],
+        self._validate_shapes(self.orientation_matrix.read_value()[:, 0, :3],
+                              self.orientation_matrix.read_value()[:, 1, :3],
+                              self.orientation_matrix.read_value()[:, 2, :3],
                               self.slice_position.read_value(),
                               self.spatial_extend.read_value())
         self.expansion_factor.assign(tf.shape(self.orientation_matrix.read_value())[0])
-- 
GitLab