From 9932c243a3cd0ad9585ecead25381e1ea9ea95bd Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:34:39 -0800 Subject: [PATCH] update: merge dangerously for checked materials --- src/py/mat3ra/made/tools/build/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/py/mat3ra/made/tools/build/utils.py b/src/py/mat3ra/made/tools/build/utils.py index c57c9df6..6c2639d4 100644 --- a/src/py/mat3ra/made/tools/build/utils.py +++ b/src/py/mat3ra/made/tools/build/utils.py @@ -174,5 +174,7 @@ def stack_two_materials_xy( phase_2_material = expand_lattice_vectors(phase_2_material, gap) phase_2_material = translate_by_vector(phase_2_material, [gap / 2, 0, 0], use_cartesian_coordinates=True) - interface = merge_materials([phase_1_material, phase_2_material], distance_tolerance=distance_tolerance) + interface = merge_materials( + [phase_1_material, phase_2_material], distance_tolerance=distance_tolerance, merge_dangerously=True + ) return interface