class_docstr: Class Duration in development.
     
class_docstr_tok: ["Class","Duration","in","development","."]
docstr: Check to see if frames are the same.
  
  = ERROR CONDITIONS
  - If the frame of the rhs Duration is not the same as our frame,
    an error is thrown.
  
  = INPUT VARIABLES
  - rhs    The Duration to check for the same frame
  - func   The name of the function doing the check.
docstr_tok: ["Check","to","see","if","frames","are","the","same",".","=","ERROR","CONDITIONS","-","If","the","frame","of","the","rhs","Duration","is","not","the","same","as","our","frame",",","an","error","is","thrown",".","=","INPUT","VARIABLES","-","rhs","The","Duration","to","check","for","the","same","frame","-","func","The","name","of","the","function","doing","the","check","."]
code: def checkSameFrame(self, rhs, func):
      """Check to see if frames are the same.
  
      = ERROR CONDITIONS
      - If the frame of the rhs Duration is not the same as our frame,
        an error is thrown.
  
      = INPUT VARIABLES
      - rhs    The Duration to check for the same frame
      - func   The name of the function doing the check.
      """
      if self._frame != rhs._frame:
          msg = (
              "Cannot %s Duration's with different frames.\n"
              "LHS: %s\n"
              "RHS: %s" % (func, self._frame, rhs._frame)
          )
          raise ValueError(msg)
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/jpl_units/Duration.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
label_desc: Use image node_id 16 for calling the Duration obj's underlying member method code with example usage: obj.checkSameFrame(rhs, func) without return types