def _get_focal_mechanisms(): return ev.FocalMechanism( nodal_planes=_get_nodal_planes(), principal_axis=_get_principal_axis(), azimuthal_gap=12, station_polarity_count=12, misfit=.12, station_distribution_ratio=.12, moment_tensor=_get_moment_tensor(), )
def event_focal_mech(self, event_origins): """Add a focal mechanism to the event""" event_origins.focal_mechanisms.append(ev.FocalMechanism()) return event_origins