Skip to content

Commit

Permalink
fix: consistently choose the reference with new convention
Browse files Browse the repository at this point in the history
unit tests are your friend

Resolves: #81.
  • Loading branch information
oesteban committed Jul 18, 2022
1 parent 5822b41 commit 7f1657c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nitransforms/manip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 7f1657c

Please sign in to comment.