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

Add seed: int = 0 parameter to Structure.perturb() method #4270

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

janosh
Copy link
Member

@janosh janosh commented Jan 27, 2025

  • Update tests to verify reproducible random perturbations with same seed
  • Add test cases for different seed values and min_distance parameter

- Update tests to verify reproducible random perturbations with same seed
- Add test cases for different seed values and min_distance parameter
@shyuep
Copy link
Member

shyuep commented Jan 27, 2025

I am confused why this is really needed. The definition of a random perturbation means it is non-deterministic. The only determinism is an inequality based on the amplitude of the perturbation.

@janosh
Copy link
Member Author

janosh commented Jan 27, 2025

needed for downstream packages that use the perturb method in testing

@shyuep shyuep merged commit f82ce1f into materialsproject:master Jan 28, 2025
43 checks passed
@janosh janosh deleted the struct-perturb-seed branch January 28, 2025 22:50
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.

2 participants