linkml / linkml-runtime

Runtime support for linkml generated models
https://linkml.io/linkml/
Creative Commons Zero v1.0 Universal
25 stars 23 forks source link

When normalizing multivalued slots, do not recreate object if it already instantiates desired type #180

Closed cmungall closed 2 years ago

cmungall commented 2 years ago

Fixes https://github.com/linkml/linkml/issues/817

codecov-commenter commented 2 years ago

Codecov Report

Merging #180 (b46daf3) into main (2bd6d6b) will decrease coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #180      +/-   ##
==========================================
- Coverage   62.60%   62.57%   -0.03%     
==========================================
  Files          49       49              
  Lines        5447     5451       +4     
  Branches     1551     1553       +2     
==========================================
+ Hits         3410     3411       +1     
- Misses       1651     1652       +1     
- Partials      386      388       +2     
Impacted Files Coverage Δ
linkml_runtime/utils/yamlutils.py 74.78% <100.00%> (+0.43%) :arrow_up:
linkml_runtime/linkml_model/meta.py 51.44% <0.00%> (-0.14%) :arrow_down:

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 03ffdce...b46daf3. Read the comment docs.