Skip to content

Derive systematic absences and Laue orbits from group symops in generate_possible_hkls - #348

Open
chenyangsu wants to merge 1 commit into
MaterSim:masterfrom
chenyangsu:fix/generate-possible-hkls
Open

chenyangsu wants to merge 1 commit into
MaterSim:masterfrom
chenyangsu:fix/generate-possible-hkls

Conversation

@chenyangsu

Copy link
Copy Markdown

In Group.generate_possible_hkls(h_max=3, max_square=27), P21/c (14) lists absent reflections like (1, 0, 1) and P4 (75) omits allowed families like (2, 1, 0) because is_hkl_allowed misses several glide conditions and get_canonical_hkl merges index permutations across lower Laue classes.

Could we derive both systematic absences and Laue-orbit deduplication directly from Wyckoff_positions[0].ops in is_valid_hkl and generate_possible_hkls? Happy to keep is_valid_hkl separate if you prefer limiting the change to generate_possible_hkls.

Testing: pytest tests/test_symmetry.py tests/test_group.py tests/test_lattice.py tests/test_wyckoff.py -> 57 passed (2 new tests fail on master).

Fixes #345

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generate_possible_hkls lists absent reflections and drops allowed families in 57 space groups

1 participant