Skip to content

Commit

Permalink
update: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Oct 2, 2024
1 parent 3db80bf commit 2832d81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/py/unit/test_tools_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
filter_by_sphere,
filter_by_triangle_projection,
remove_vacuum,
rotate_material,
rotate,
translate_to_z_level,
)
from mat3ra.utils import assertion as assertion_utils
Expand Down Expand Up @@ -164,11 +164,11 @@ def test_remove_vacuum():
assertion_utils.assert_deep_almost_equal(material_down.to_json(), material_with_set_vacuum.to_json())


def test_rotate_material():
def test_rotate():
material = Material(SI_SLAB)
# Rotation around Z and X axis will be equivalent for the original material for hist basis in terms of coordinates
rotated_material = rotate_material(material, [0, 0, 1], 180)
rotated_material = rotate_material(rotated_material, [1, 0, 0], 180)
rotated_material = rotate(material, [0, 0, 1], 180)
rotated_material = rotate(rotated_material, [1, 0, 0], 180)
assertion_utils.assert_deep_almost_equal(
material.basis.coordinates.values.sort(), rotated_material.basis.coordinates.values.sort()
)
Expand Down

0 comments on commit 2832d81

Please sign in to comment.