def __init__(self, boundary, depth_top_seismogenic_dist, azimuth, dip, magnitude, depth_bottom_seismogenic_dist, polygon_name, polygon_event_type, number_of_events, exclude): """ boundary is an array of polygon points exclude is an array of polygon points All other variables are dictionaries describing distributions """ if exclude is None: exclude = [] polygon_object.__init__(self, boundary, exclude) self.depth_top_seismogenic_dist = depth_top_seismogenic_dist self.azimuth = azimuth self.dip = dip self.magnitude = magnitude self.depth_bottom_seismogenic_dist = depth_bottom_seismogenic_dist self.polygon_name = polygon_name self.polygon_event_type = polygon_event_type self.number_of_events = number_of_events
def __init__(self, boundary, exclude, recurrence_model_seq, generation_min_mag, event_type, name): """ boundary is a list of points that forms a polygon exclude is a list of polygons (so a list of a list of points) recurrence_model_seq: sequence of RecurrenceModel() #FIXME DSG-EQRM This class needs comments. And where are it's methods? recurrence_functions might have 1. """ polygon_object.__init__(self, boundary, exclude) Source.__init__(self, recurrence_model_seq, generation_min_mag=generation_min_mag, event_type=event_type, name=name)