Skip to content

replacing vocabulary enums with python classes#170

Merged
keighrim merged 3 commits intodevelopfrom
23-beef-up-type-enum
May 25, 2021
Merged

replacing vocabulary enums with python classes#170
keighrim merged 3 commits intodevelopfrom
23-beef-up-type-enum

Conversation

@keighrim
Copy link
Member

@keighrim keighrim commented May 25, 2021

This PR addresses #23 (partially), #64 (partially), and #163.

keighrim added 2 commits May 24, 2021 21:39
* type classes in `vocabulary` package are not custom python classes
* this is a major step to address #163
* this will also be a step forward to clamsproject/mmif#64 as it fixes the issues mentioned in clamsproject/mmif#64 (comment)
* NOTE that changes here contain a breaking change; `AnnotationTypes` class no longer has `value` attribute, which was used to get `str` value of a type
@keighrim
Copy link
Member Author

As stated in the commit msg:

  • NOTE that changes here contain a breaking change; AnnotationTypes class no longer has value attribute, which was used to get str value of a type

@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

Merging #170 (d50ccd9) into develop (ded7367) will decrease coverage by 0.36%.
The diff coverage is 97.14%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #170      +/-   ##
===========================================
- Coverage    95.96%   95.60%   -0.37%     
===========================================
  Files            6        6              
  Lines          769      774       +5     
===========================================
+ Hits           738      740       +2     
- Misses          31       34       +3     
Flag Coverage Δ
unittests 95.60% <97.14%> (-0.37%) ⬇️

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

Impacted Files Coverage Δ
mmif/serialize/view.py 94.57% <93.33%> (-0.85%) ⬇️
mmif/serialize/annotation.py 98.08% <100.00%> (+0.06%) ⬆️
mmif/serialize/mmif.py 98.45% <100.00%> (+0.01%) ⬆️
mmif/serialize/model.py 92.47% <0.00%> (-0.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ded7367...d50ccd9. Read the comment docs.

@keighrim keighrim merged commit 477c4e1 into develop May 25, 2021
@keighrim keighrim deleted the 23-beef-up-type-enum branch May 25, 2021 05:12
keighrim added a commit that referenced this pull request May 30, 2021
* bugfix from #170: keys of ContainsDict were casted into str and cause unexpected error
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.

Allowed at-type version differences in same pipeline Linked issue: Annotation vocabulary shortnames and ID prefixes

1 participant