Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
ruff
fixes #184ruff
fixes #184Changes from 41 commits
e02ec19
d581717
110f4eb
9996c5d
1c74710
6fa3755
3023f84
6a4246d
62f3638
cc1f833
d628068
d0c6b5b
b4f05c5
7f7d6b6
c70f804
1d0b153
4f044eb
45a1fd7
b8f6cfa
e4ceb6a
d00a425
af86ce6
d7aaded
47a77e0
570bfed
ff8bf84
1f40088
b60f5e4
e53337e
1b84de4
59787a6
bda704b
4eed205
1d1ec65
4cafef7
d1bf176
107fb02
190d6e8
c9e8e5f
8875487
8c3ffa2
aeb9053
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is intended, but I don't think
SystemExit
should be raised here? ff8bf84There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably add a
seed
kwarg toStructure.perturb
that's simply passed intonp.random.default_rng(seed=seed)
over inpymatgen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point, especially with the generator implementation.
I didn't realize this downside before but it turns out with the new generator implementation every
rng
is a isolated instance, making it impossible to set a global seed and control all random states (or it's just me unaware of that).