Skip to content

Implementation of mmif rewinder#191

Merged
keighrim merged 10 commits intodevelopfrom
190-rewind
Jan 31, 2024
Merged

Implementation of mmif rewinder#191
keighrim merged 10 commits intodevelopfrom
190-rewind

Conversation

@keighrim
Copy link
Member

Re-opening of clamsproject/mmif-python#250. Fixes #190.

- changed rewinder file name taking off mmif_.
- changed _delete_last function name to be single underscored.
- added CLI argument for number of views to rewind.
- changed read_mmif from json.load() -> file.read()
@codecov
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Attention: 44 lines in your changes are missing coverage. Please review.

Comparison is base (ded8505) 77.05% compared to head (4e82ce8) 73.69%.

Files Patch % Lines
clams/mmif_utils/rewind.py 48.10% 41 Missing ⚠️
clams/__init__.py 60.00% 2 Missing ⚠️
clams/app/__init__.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #191      +/-   ##
===========================================
- Coverage    77.05%   73.69%   -3.36%     
===========================================
  Files            7        9       +2     
  Lines          645      730      +85     
===========================================
+ Hits           497      538      +41     
- Misses         148      192      +44     
Flag Coverage Δ
unittests 73.69% <50.00%> (-3.36%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* optimized MMIF file I/O
* added rewinding by number of apps (opposed to number of views, not exposed in CLI)
@keighrim keighrim added this to the sdk-m3p4 milestone Jan 29, 2024
@keighrim keighrim merged commit 45ae3b8 into develop Jan 31, 2024
@keighrim keighrim deleted the 190-rewind branch January 31, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

MMIF rewinder

3 participants