-
Notifications
You must be signed in to change notification settings - Fork 176
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
Update shuffle_poscar feature in run.py #1730
base: devel
Are you sure you want to change the base?
Conversation
numpy.random.Generator.shuffle() performs the intended operation of shuffling the order of atoms. numpy.random.Generator.permuted() permutes the elements along the given axis, which mixes the coordinates of all atoms Signed-off-by: ztzkz <[email protected]>
for more information, see https://pre-commit.ci
📝 WalkthroughWalkthroughThe change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant make_model_devi
participant RNG
Caller->>make_model_devi: Call with shuffle_poscar=True
make_model_devi->>RNG: rng.shuffle(system.data["coords"], axis=1)
RNG-->>make_model_devi: Return shuffled coordinates
make_model_devi-->>Caller: Return modified system
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #1730 +/- ##
==========================================
- Coverage 49.51% 49.40% -0.11%
==========================================
Files 83 83
Lines 14863 14770 -93
==========================================
- Hits 7359 7297 -62
+ Misses 7504 7473 -31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
numpy.random.Generator.shuffle() performs the intended operation of shuffling the order of atoms. numpy.random.Generator.permuted() permutes the elements along the given axis, which mixes the coordinates of all atoms


shuffle
permuted
Summary by CodeRabbit