Skip to content

Commit

Permalink
FIX: Do not decompose LinearTransformsMappings when adding to a Trans…
Browse files Browse the repository at this point in the history
…formChain
  • Loading branch information
effigies committed Sep 21, 2024
1 parent 344b1ce commit 7bc22c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nitransforms/manip.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ def _as_chain(x):
"""Convert a value into a transform chain."""
if isinstance(x, TransformChain):
return x.transforms
if isinstance(x, TransformBase):
return [x]
if isinstance(x, Iterable):
return list(x)
return [x]
Expand Down

0 comments on commit 7bc22c5

Please sign in to comment.