Closed cwhanse closed 5 years ago
Closing, OBInstance._is_valid_unit is checking consistency between a concept and a unit, whereas TaxonomyUnits.is_unit is confirming presence in the taxonomy. _is_valid_unit uses .is_unit by means of TaxonomyUnits.get_unit
After #98 is merged, TaxonomyUnits.is_unit(unit_str) accepts unit_name, unit_id or id and returns Boolean. TaxonomyUnits.get_unit(unit_str) accepts unit_name, unit_id or id and returns unit instance.
OBInstance._is_valid_unit could use these two functions instead.