From 7f1657c9841127a2b3a8eae313670f231942ea16 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Mon, 18 Jul 2022 15:47:07 +0200 Subject: [PATCH] fix: consistently choose the reference with new convention unit tests are your friend Resolves: #81. --- nitransforms/manip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nitransforms/manip.py b/nitransforms/manip.py index 91e43b61..44a8ec77 100644 --- a/nitransforms/manip.py +++ b/nitransforms/manip.py @@ -74,8 +74,8 @@ def transforms(self): @transforms.setter def transforms(self, value): self._transforms = _as_chain(value) - if self.transforms[-1].reference: - self.reference = self.transforms[-1].reference + if self.transforms[0].reference: + self.reference = self.transforms[0].reference def append(self, x): """