From 96adbddeba4119edce9c0c69dbac3e3d8c1016ea Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Mon, 13 Aug 2018 22:37:48 +0200 Subject: [PATCH] [remove] unused parameter in create_arrivals The station id is no longer passed into the function and used to retrieve the station coordinates, but the id is taken from the vertical stream instead. --- pylot/core/pick/autopick.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index c64e4a38..6800f0a8 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -468,15 +468,13 @@ class AutopickStation(object): id = id.format(network=stats.network, station=stats.station, location=stats.location, channel=stats.channel) return id - def create_arrivals(metadata, origin, station_id, taup_model): + def create_arrivals(metadata, origin, taup_model): """ Create List of arrival times for all phases for a given origin and station :param metadata: tuple containing metadata type string and Parser object read from inventory file :type metadata: tuple (str, ~obspy.io.xseed.parser.Parser) :param origin: list containing origin objects representing origins for all events :type origin: list(~obspy.core.event.origin) - :param station_id: Station id with format NETWORKNAME.STATIONNAME - :type station_id: str :param taup_model: Model name to use. See obspy.taup.tau.TauPyModel for options :type taup_model: str :return: List of Arrival objects @@ -528,7 +526,7 @@ class AutopickStation(object): if not self.origin: raise AttributeError('No source origins given!') - arrivals = create_arrivals(self.metadata, self.origin, self.station_id, self.p_params.taup_model) + arrivals = create_arrivals(self.metadata, self.origin, self.p_params.taup_model) estFirstP, estFirstS = first_PS_onsets(arrivals) # modifiy pstart and pstop relative to estimated first P arrival (relative to station time axis) self.p_params.pstart += (self.origin[0].time + estFirstP) - self.ztrace.stats.starttime