-
Notifications
You must be signed in to change notification settings - Fork 527
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
feat(pt): add datafile option for change-bias #3945
Conversation
WalkthroughWalkthroughThe changes primarily enhance the functionality related to handling data files in the Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant CLI as Command Line Interface
participant Main as deepmd/main.py
participant Entrypoint as deepmd/pt/entrypoints/main.py
participant System as System Data Processor
User->>CLI: Execute with --datafile argument
CLI->>Main: Parse arguments
Main->>Entrypoint: Pass FLAGS with datafile
alt FLAGS.datafile is not None
Entrypoint->>System: Read system data from file
else FLAGS.datafile is None
Entrypoint->>System: Process data from FLAGS.system
end
System-->>Entrypoint: Retrieve processed data
Entrypoint-->>Main: Pass processed data
Main-->>User: Output results
Tip AI model upgrade
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #3945 +/- ##
==========================================
- Coverage 82.85% 82.85% -0.01%
==========================================
Files 520 520
Lines 50805 50810 +5
Branches 3015 3015
==========================================
+ Hits 42096 42097 +1
- Misses 7774 7775 +1
- Partials 935 938 +3 ☔ View full report in Codecov by Sentry. |
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: 3
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added optional `--datafile` argument to specify a file for system data processing. - **Bug Fixes** - Improved `help` messages for `--datafile` argument to clarify its usage. - **Tests** - Enhanced test coverage for changing bias with a new method that handles data from a system file. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
--datafile
argument to specify a file for system data processing.Bug Fixes
help
messages for--datafile
argument to clarify its usage.Tests