Skip to content

Store symmetry group metadata in Model to avoid re-passing magnetic_moments #1307

Description

@niklasschmitz

Problem

Several postprocessing functions (e.g. elastic_tensor) need to redetermine crystal symmetries for a modified lattice. Currently this requires passing magnetic_moments because the Model does not remember the symmetry group information needed to reproduce its symmetry operations.

This is awkward and error-prone, as discussed in #1172.

Proposed solution

Store symmetry group metadata (e.g. the spglib integer ID or pointgroup_symbol) in the Model so that symmetry-related queries can be made without re-supplying magnetic_moments. This should also be useful for band structures and other contexts where the same problem arises.

Relevant discussion: #1172 (comment)

Related: symmetry_from_database already supports integer group IDs, and Brillouin is compatible with this approach (unlike the string-based pointgroup_symbol).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions