code: def add_rup_params(self, rupture):
          
          for param in self.REQUIRES_RUPTURE_PARAMETERS:
              if param == 'mag':
                  value = rupture.mag
              elif param == 'strike':
                  value = rupture.surface.get_strike()
              elif param == 'dip':
                  value = rupture.surface.get_dip()
              elif param == 'rake':
                  value = rupture.rake
              elif param == 'ztor':
                  value = rupture.surface.get_top_edge_depth()
              elif param == 'hypo_lon':
                  value = rupture.hypocenter.longitude
              elif param == 'hypo_lat':
                  value = rupture.hypocenter.latitude
              elif param == 'hypo_depth':
                  value = rupture.hypocenter.depth
              elif param == 'width':
                  value = rupture.surface.get_width()
              else:
                  raise ValueError('%s requires unknown rupture parameter %r' %
                                   (type(self).__name__, param))
              setattr(rupture, param, value)
docs: Add .REQUIRES_RUPTURE_PARAMETERS to the rupture