Closed keighrim closed 5 months ago
Attention: 46 lines
in your changes are missing coverage. Please review.
Comparison is base (
b45e267
) 76.77% compared to head (45ae3b8
) 73.69%. Report is 15 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
clams/mmif_utils/rewind.py | 48.10% | 41 Missing :warning: |
clams/__init__.py | 60.00% | 2 Missing :warning: |
clams/app/__init__.py | 90.90% | 2 Missing :warning: |
clams/appmetadata/__init__.py | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Overview
This is a minor-level release that fixes various bugs and adds safeguards for possible inconsistency in output MMIFs.
Additions
sign_view
now use user input parameters "as-is" whenever they are available (https://github.com/clamsproject/clams-python/issues/181)clams rewind
is now available to rewind MMIF files (https://github.com/clamsproject/clams-python/issues/190)provides CLI to rewind a MMIF from a CLAMS pipeline.
MMIF rewinder rewinds a MMIF by deleting the last N views. N can be specified as a number of views, or a number of producer apps.
positional arguments: mmif_file Path to the input MMIF file, or '-' to read from stdin.
optional arguments: -h, --help show this help message and exit -o PATH, --output PATH Path to the rewound MMIF output file. When not given, the rewound MMIF is printed to stdout. -p, --pretty Pretty-print rewound MMIF. True by default -n NUMBER, --number NUMBER Number of views to rewind (default: interactive mode) -m {app,view}, --mode {app,view} Number of views to rewind (default: interactive mode)