-
Notifications
You must be signed in to change notification settings - Fork 525
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
[Fix] Wrap log_path with Path #4117
Conversation
WalkthroughWalkthroughThe pull request modifies the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Main
participant LogHandler
User->>Main: Call main()
Main->>LogHandler: set_log_handles(Path(FLAGS.log_path))
LogHandler-->>Main: Log handles set
Main-->>User: Execution continues
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4117 +/- ##
========================================
Coverage 83.02% 83.02%
========================================
Files 524 532 +8
Lines 51638 52187 +549
Branches 3030 3030
========================================
+ Hits 42870 43330 +460
- Misses 7822 7911 +89
Partials 946 946 ☔ View full report in Codecov by Sentry. |
It seems that the default value of |
You are right, it should be same as deepmd-kit/deepmd/entrypoints/main.py Lines 52 to 54 in a5346f2
|
Signed-off-by: HydrogenSulfate <490868991@qq.com>
`FLAGS.log_path` need to be wrapped into `Path` type, or will raise error when call `.parent`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Improvements** - Enhanced handling of log file paths for better compatibility and functionality in file operations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: HydrogenSulfate <490868991@qq.com>
FLAGS.log_path
need to be wrapped intoPath
type, or will raise error when call.parent
.Summary by CodeRabbit