Skip to content

Commit 7bc22c5

Browse files
committed
FIX: Do not decompose LinearTransformsMappings when adding to a TransformChain
1 parent 344b1ce commit 7bc22c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nitransforms/manip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ def _as_chain(x):
213213
"""Convert a value into a transform chain."""
214214
if isinstance(x, TransformChain):
215215
return x.transforms
216+
if isinstance(x, TransformBase):
217+
return [x]
216218
if isinstance(x, Iterable):
217219
return list(x)
218220
return [x]

0 commit comments

Comments
 (0)