Commit 20acee4d authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: adjust [de]compose test

parent aa112949
......@@ -228,6 +228,7 @@ def test_compose_and_decompose():
scales, offsets, rotations, shears = affine.decompose(
xform, shears=True)
result = affine.compose(scales, offsets, rotations, shears=shears)
assert np.all(np.isclose(xform, result, atol=1e-5))
......@@ -236,8 +237,10 @@ def test_compose_and_decompose():
# different rotation origin, but we test
# explicitly passing the origin for
# completeness
scales, offsets, rotations = affine.decompose(xform)
result = affine.compose(scales, offsets, rotations, [0, 0, 0])
scales, offsets, rotations, shears = affine.decompose(
xform, shears=True)
result = affine.compose(
scales, offsets, rotations, origin=[0, 0, 0], shears=shears)
assert np.all(np.isclose(xform, result, atol=1e-5))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment