(function from pyomo.util.check_units)
pyomo.util.check_units
This method raises an exception if the units are not consistent on the passed in object. Argument obj can be one of the following components: Pyomo Block (or Model), Constraint, Objective, Expression, or it can be a Pyomo expression object
obj (Pyomo component (e.g., Block, Model, Constraint, Objective, or Expression) or Pyomo expression) – The object or expression to test
pyomo.core.base.units_container.UnitsError –