class_docstr: Class UnitDbl in development.
class_docstr_tok: ["Class","UnitDbl","in","development","."]
docstr: Check to see if units are the same.
  
  = ERROR CONDITIONS
  - If the units of the rhs UnitDbl are not the same as our units,
    an error is thrown.
  
  = INPUT VARIABLES
  - rhs     The UnitDbl to check for the same units
  - func    The name of the function doing the check.
docstr_tok: ["Check","to","see","if","units","are","the","same",".","=","ERROR","CONDITIONS","-","If","the","units","of","the","rhs","UnitDbl","are","not","the","same","as","our","units",",","an","error","is","thrown",".","=","INPUT","VARIABLES","-","rhs","The","UnitDbl","to","check","for","the","same","units","-","func","The","name","of","the","function","doing","the","check","."]
code: def checkSameUnits(self, rhs, func):
      """
      Check to see if units are the same.
  
      = ERROR CONDITIONS
      - If the units of the rhs UnitDbl are not the same as our units,
        an error is thrown.
  
      = INPUT VARIABLES
      - rhs     The UnitDbl to check for the same units
      - func    The name of the function doing the check.
      """
      if self._units != rhs._units:
          raise ValueError(
              f"Cannot {func} units of different types.\n"
              f"LHS: {self._units}\n"
              f"RHS: {rhs._units}"
          )
  
file_path: matplotlib/lib/matplotlib/testing/jpl_units/UnitDbl.py
imports: import functools
  import operator
  from matplotlib import _api
label_desc: Use image node_id 13 for calling the UnitDbl obj's underlying member method code with example usage: obj.checkSameUnits(rhs, func) without return types