From e00c3286a4d7d0ad9b7bd067856830a2b048af7b Mon Sep 17 00:00:00 2001 From: xivh <37019938+xivh@users.noreply.github.com> Date: Tue, 16 Jun 2026 11:05:21 -0700 Subject: [PATCH] Update mapping_info.cpp code snippet --- python/src/mapping_info.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/src/mapping_info.cpp b/python/src/mapping_info.cpp index 6077e7a..5ac2a21 100644 --- a/python/src/mapping_info.cpp +++ b/python/src/mapping_info.cpp @@ -299,8 +299,10 @@ PYBIND11_MODULE(_mapping_info, m) { .. code-block:: Python import libcasm.xtal as xtal + T = lattice_mapping.transformation_matrix_to_super().astype(int) + N = lattice_mapping.reorientation().astype(int) parent_superstructure = xtal.make_superstructure( - T * N, parent_structure) + T @ N, parent_structure) where :math:`T`, and :math:`N` are from a :class:`~libcasm.mapping.info.LatticeMapping`. Then the i-th atom coordinate,