Deprecate petablint with individual tables#274
Merged
dweindl merged 4 commits intoPEtab-dev:developfrom Jun 26, 2024
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #274 +/- ##
===========================================
- Coverage 76.30% 76.09% -0.22%
===========================================
Files 36 36
Lines 3224 3233 +9
Branches 783 786 +3
===========================================
Hits 2460 2460
- Misses 559 568 +9
Partials 205 205 ☔ View full report in Codecov by Sentry. |
dilpath
approved these changes
Jun 25, 2024
| group.add_argument( | ||
| dest="yaml_file_name", | ||
| help="PEtab YAML problem filename", | ||
| nargs="?", |
Member
There was a problem hiding this comment.
I wonder if it's possible to say yaml_file_name_deprecated takes 0 arguments, i.e. it's treated as just a "flag", and instead its argument then gets treated as a positional argument, and hence saved to yaml_file_name. Anyway, not important
Member
Author
There was a problem hiding this comment.
It can be done and would slightly simplify the code, but the petablint --help output would be more confusing, I think.
dilpath
reviewed
Jun 25, 2024
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I think the main use case is running petablint on a full petab problem, so we don't need the option to pass individual tables. To support individual tables with the upcoming petab v2, we'd have to extend the list of files and require a version number. I don't it's worth maintaining this functionality (correct me if I am wrong), since validation of individual files is anyways rather limited.
Therefore, this adds deprecation warnings to command line arguments for individual PEtab tables and for the
-y--yamlflags, which are no longer required, and the removal of which will makepetablinteasier to use.Related to #271