diff --git a/src/py/mat3ra/made/tools/modify.py b/src/py/mat3ra/made/tools/modify.py index 1d3b7fcf..19b50183 100644 --- a/src/py/mat3ra/made/tools/modify.py +++ b/src/py/mat3ra/made/tools/modify.py @@ -470,7 +470,7 @@ def displace_interface( interface: Material, displacement: List[float], label: InterfacePartsEnum = InterfacePartsEnum.FILM, - use_cartesian_coordinates=False, + use_cartesian_coordinates=True, ) -> Material: """ Displace atoms in an interface along a certain direction. diff --git a/tests/py/unit/test_tools_modify.py b/tests/py/unit/test_tools_modify.py index 3dc9cc8c..7b8c9f7e 100644 --- a/tests/py/unit/test_tools_modify.py +++ b/tests/py/unit/test_tools_modify.py @@ -184,6 +184,8 @@ def test_displace_interface(): {"id": 4, "value": [0.766666667, 0.866666667, 0.911447347]}, ] expected_labels = GRAPHENE_NICKEL_INTERFACE["basis"]["labels"] - displaced_material = displace_interface(material, [0.1, 0.2, 0.3], InterfacePartsEnum.FILM) + displaced_material = displace_interface( + 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()) assertion_utils.assert_deep_almost_equal(expected_labels, displaced_material.basis.labels.to_dict())