original_docstring: Compare two objects and return list of differences
docstring: Compare two objects and return list of differences
docstring_tokens: Compare two objects and return list of differences
code: def compare(self, other, name="self", ignore_list=None):
          """Compare two objects and return list of differences"""
  
          if ignore_list is None:
              ignore_list = list()
          if type(other) != type(self):
              return ["type(" + name + ")"]
          diff_list = list()
          if other._lambda_x != self._lambda_x:
              diff_list.append(name + ".lambda_x")
          if other._lambda_y != self._lambda_y:
              diff_list.append(name + ".lambda_y")
          if other._lambda_z != self._lambda_z:
              diff_list.append(name + ".lambda_z")
          if other._Cp != self._Cp:
              diff_list.append(name + ".Cp")
          if other._alpha != self._alpha:
              diff_list.append(name + ".alpha")
          # Filter ignore differences
          diff_list = list(filter(lambda x: x not in ignore_list, diff_list))
          return diff_list
code_tokens: def compare ( self , other , name = "self" , ignore_list = None ) : if ignore_list is None : ignore_list = list ( ) if type ( other ) != type ( self ) : return [ "type(" + name + ")" ] diff_list = list ( ) if other . _lambda_x != self . _lambda_x : diff_list . append ( name + ".lambda_x" ) if other . _lambda_y != self . _lambda_y : diff_list . append ( name + ".lambda_y" ) if other . _lambda_z != self . _lambda_z : diff_list . append ( name + ".lambda_z" ) if other . _Cp != self . _Cp : diff_list . append ( name + ".Cp" ) if other . _alpha != self . _alpha : diff_list . append ( name + ".alpha" ) diff_list = list ( filter ( lambda x : x not in ignore_list , diff_list ) ) return diff_list
short_docstring: Compare two objects and return list of differences
short_docstring_tokens: Compare two objects and return list of differences
comment: """Compare two objects and return list of differences"""$SEP$# Filter ignore differences