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

Self loop mask fix #320

Merged
merged 5 commits into from
Nov 22, 2024
Merged

Conversation

laserkelvin
Copy link
Collaborator

This PR fixes the logic for removing self-loops in the allow_self_loops flag for PeriodicPropertiesTransform.

I've rewritten the mask calculation to make it more readable for humans, as well as added a dedicated unit test that explicitly checks for the presence of self-loops to make sure the logic is implemented correctly.

@laserkelvin laserkelvin added the bug Something isn't working label Nov 22, 2024
@laserkelvin laserkelvin merged commit 895c4ab into IntelLabs:main Nov 22, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the self-loop-mask-fix branch November 22, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants