Skip to content

Commit

Permalink
update; fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Oct 3, 2024
1 parent d588527 commit 15c50a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/py/unit/test_tools_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from mat3ra.made.tools.convert.utils import InterfacePartsEnum
from mat3ra.made.tools.modify import (
add_vacuum,
displace_interface_part,
filter_by_circle_projection,
filter_by_label,
filter_by_layers,
filter_by_rectangle_projection,
filter_by_sphere,
filter_by_triangle_projection,
interface_displace_part,
remove_vacuum,
rotate,
translate_to_z_level,
Expand Down Expand Up @@ -185,7 +185,7 @@ def test_displace_interface():
{"id": 4, "value": [0.766666667, 0.866666667, 0.911447347]},
]
expected_labels = GRAPHENE_NICKEL_INTERFACE["basis"]["labels"]
displaced_material = displace_interface_part(
displaced_material = interface_displace_part(
material, [0.1, 0.2, 0.3], InterfacePartsEnum.FILM, use_cartesian_coordinates=False
)
assertion_utils.assert_deep_almost_equal(expected_coordinates, displaced_material.basis.coordinates.to_dict())
Expand All @@ -206,6 +206,6 @@ def test_displace_interface_optimized():
optimal_displacement = get_optimal_film_displacement(
material, grid_size_xy=(10, 10), grid_range_x=(-0.5, 0.5), grid_range_y=(-0.5, 0.5)
)
displaced_material = displace_interface_part(material, optimal_displacement, use_cartesian_coordinates=True)
displaced_material = interface_displace_part(material, optimal_displacement, use_cartesian_coordinates=True)
assertion_utils.assert_deep_almost_equal(expected_coordinates, displaced_material.basis.coordinates.to_dict())
assertion_utils.assert_deep_almost_equal(expected_labels, displaced_material.basis.labels.to_dict())

0 comments on commit 15c50a0

Please sign in to comment.