SunSpecOrangeButton / pyoblib

Orange Button Python Library
Apache License 2.0
14 stars 19 forks source link

Add attribute name kwarg to TaxonomyUnits.is_unit, .get_unit #105

Closed cwhanse closed 5 years ago

cwhanse commented 5 years ago

Can specify kwarg attr='unit_id', 'unit_name' or 'id' (default None) to restrict searching for the desired unit.

codecov-io commented 5 years ago

Codecov Report

Merging #105 into master will decrease coverage by 0.63%. The diff coverage is 69.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
- Coverage   88.38%   87.74%   -0.64%     
==========================================
  Files          23       23              
  Lines        2272     2310      +38     
==========================================
+ Hits         2008     2027      +19     
- Misses        264      283      +19
Impacted Files Coverage Δ
oblib/tests/test_taxonomy_units.py 100% <100%> (+2.08%) :arrow_up:
oblib/taxonomy_units.py 80.16% <63.04%> (-15.44%) :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 97de4bb...e09d917. Read the comment docs.