Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge count fix #323

Merged
merged 5 commits into from
Dec 2, 2024
Merged

Edge count fix #323

merged 5 commits into from
Dec 2, 2024

Conversation

laserkelvin
Copy link
Collaborator

This PR is related to #321, and makes the edges being returned exactly equivalent to those counted by ovito.

The changes made affect the Edge dataclass that was being used with either pymatgen and ase backends for periodic boundary calculations; the __eq__ and __hash__ methods now compare image indices without considering phase. The result is that edges are kept in sets as undirected and equivalent by mirror symmetry.

@laserkelvin laserkelvin added bug Something isn't working data Issues related to data loading, pipelining, etc. labels Dec 2, 2024
@laserkelvin laserkelvin merged commit 90d0f3e into IntelLabs:main Dec 2, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the edge-count-fix branch December 2, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data Issues related to data loading, pipelining, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants