original_docstring: 
          Convert the angles used in representation from degrees to
          radians and vice versa.
          to_radians = True changes the angles in degrees to radians
          to_radians = False changes radian angles to degrees
          if no rules are provided, it modifies self.rules
          
docstring: Convert the angles used in representation from degrees to
  radians and vice versa.
  to_radians = True changes the angles in degrees to radians
  to_radians = False changes radian angles to degrees
  if no rules are provided, it modifies self.rules
docstring_tokens: Convert the angles used in representation from degrees to radians and vice versa . to_radians = True changes the angles in degrees to radians to_radians = False changes radian angles to degrees if no rules are provided it modifies self . rules
code: def convert_rules_angles(self, rules=None, to_radians=True):
          """
          Convert the angles used in representation from degrees to
          radians and vice versa.
          to_radians = True changes the angles in degrees to radians
          to_radians = False changes radian angles to degrees
          if no rules are provided, it modifies self.rules
          """
          modify_self_rules = False
          if rules is None:
              rules = self.rules
              modify_self_rules = True
          converted_rules = []
          for rule in rules:
              angle, factor, is_flipped, is_reversed = rule
              if to_radians:
                  new_angle = angle * RAD_FAC
              else:
                  new_angle = angle * DEG_FAC
              converted_rules.append((
                  new_angle, factor, is_flipped, is_reversed))
          if modify_self_rules:
              self.rules = converted_rules
          return converted_rules
code_tokens: def convert_rules_angles ( self , rules = None , to_radians = True ) : modify_self_rules = False if rules is None : rules = self . rules modify_self_rules = True converted_rules = [ ] for rule in rules : angle , factor , is_flipped , is_reversed = rule if to_radians : new_angle = angle * RAD_FAC else : new_angle = angle * DEG_FAC converted_rules . append ( ( new_angle , factor , is_flipped , is_reversed ) ) if modify_self_rules : self . rules = converted_rules return converted_rules
short_docstring: Convert the angles used in representation from degrees to
  radians and vice versa.
short_docstring_tokens: Convert the angles used in representation from degrees to radians and vice versa .
comment: """
          Convert the angles used in representation from degrees to
          radians and vice versa.
          to_radians = True changes the angles in degrees to radians
          to_radians = False changes radian angles to degrees
          if no rules are provided, it modifies self.rules
          """