Skip to content

Commit

Permalink
Merge pull request #181 from Exabyte-io/update/SOF-7514
Browse files Browse the repository at this point in the history
update: allow symmetrical slabs
  • Loading branch information
VsevolodX authored Dec 23, 2024
2 parents 8ca83f4 + 4a7954c commit dca2512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/py/mat3ra/made/tools/build/interface/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def _generate(self, configuration: InterfaceConfiguration) -> List[PymatgenInter
substrate_miller=configuration.substrate_configuration.miller_indices,
film_miller=configuration.film_configuration.miller_indices,
zslgen=generator,
# We need to preserve symmetric slabs for different terminations at the surface
filter_out_sym_slabs=False,
)

generated_termination_pairs = [
Expand Down
2 changes: 1 addition & 1 deletion tests/py/unit/test_tools_build_grain_boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_slab_grain_boundary_builder():
[0.0, 0.0, 8.734],
]
# Adjusted expected value to pass tests on GHA due to slab generation differences between GHA and local
expected_coordinate_15 = [0.777190818, 0.0, 0.110688115]
expected_coordinate_15 = [0.831572455, 0.0, 0.110688115]

assert len(gb.basis.elements.values) == 32
assertion_utils.assert_deep_almost_equal(expected_coordinate_15, gb.basis.coordinates.values[15])
Expand Down

0 comments on commit dca2512

Please sign in to comment.