Skip to content

Commit 29a0ed8

Browse files
committed
fix: test did not account for LTA definition of FS
1 parent ca95595 commit 29a0ed8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nitransforms/tests/test_linear.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ def test_linear_save(tmpdir, data_path, get_testdata, image_orientation, sw_tool
148148
img = get_testdata[image_orientation]
149149
# Generate test transform
150150
T = from_matvec(euler2mat(x=0.9, y=0.001, z=0.001), [4.0, 2.0, -1.0])
151-
xfm = nitl.Affine(T)
151+
if sw_tool == "fs":
152+
# Account for the fact that FS defines LTA transforms reversed
153+
T = np.linalg.inv(T)
154+
155+
xfm = nitl.LinearTransformsMapping([T])
152156
xfm.reference = img
153157

154158
ext = ""

0 commit comments

Comments
 (0)