-
Notifications
You must be signed in to change notification settings - Fork 3
Switch executable when using conda #407
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
Conversation
|
Warning Rate limit exceeded@jan-janssen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 27 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe changes introduce a new parameter, Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 (
|
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (1)
executorlib/shared/executor.py (1)
Line range hint
491-505: Fix the typo in the variable name.The static analysis tool Ruff flags the variable
commands_lstas assigned but never used. This is likely a typo and should becommand_lstinstead.Fix the typo:
- commands_lst = ["python"] + command_lst = ["python"]Tools
Ruff
505-505: Local variable
commands_lstis assigned to but never usedRemove assignment to unused variable
commands_lst(F841)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- executorlib/shared/executor.py (4 hunks)
Additional context used
Ruff
executorlib/shared/executor.py
16-16:
pylammpsmpi.mpi.lmpmpi.commands_listimported but unusedRemove unused import:
pylammpsmpi.mpi.lmpmpi.commands_list(F401)
333-333: Undefined name
prefix_name(F821)
333-333: Undefined name
prefix_path(F821)
505-505: Local variable
commands_lstis assigned to but never usedRemove assignment to unused variable
commands_lst(F841)
Additional comments not posted (1)
executorlib/shared/executor.py (1)
333-333: Verify the definition ofprefix_nameandprefix_pathin the calling code.The static analysis tool Ruff flags
prefix_nameandprefix_pathas undefined. These variables are likely defined in the calling code that is not provided in this review.Ensure that
prefix_nameandprefix_pathare properly defined before calling theexecute_parallel_tasksfunction.Run the following script to verify the definition of these variables:
Tools
Ruff
333-333: Undefined name
prefix_name(F821)
333-333: Undefined name
prefix_path(F821)
executorlib/shared/executor.py
Outdated
| from typing import Callable, List, Optional | ||
|
|
||
| import cloudpickle | ||
| from pylammpsmpi.mpi.lmpmpi import commands_list |
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.
Remove unused import.
The import statement from pylammpsmpi.mpi.lmpmpi import commands_list is flagged as unused by the static analysis tool Ruff.
Remove the unused import:
-from pylammpsmpi.mpi.lmpmpi import commands_listCommittable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| from pylammpsmpi.mpi.lmpmpi import commands_list |
Tools
Ruff
16-16:
pylammpsmpi.mpi.lmpmpi.commands_listimported but unusedRemove unused import:
pylammpsmpi.mpi.lmpmpi.commands_list(F401)
|
No longer required with the introduction of #418 |
Summary by CodeRabbit
condaparameter.