Skip to content
Snippets Groups Projects

Draft: Reattempt to merge old Iris-Factory Branch from Swilbur's local repo

Closed Wilbur, Spencer Franklin requested to merge pcain-iris into master
Files
12
@@ -333,6 +333,10 @@ class EdgeFactory(TimeseriesFactory):
element=channel,
location=self.locationCode,
)
# geomag-algorithms *should* treat starttime/endtime as inclusive everywhere;
# according to its author, EdgeCWB is inclusive of starttime, but exclusive of
# endtime, to satisfy seismic standards/requirements, to precision delta/2;
half_delta = TimeseriesUtility.get_delta_from_interval(interval) / 2
try:
data = self.client.get_waveforms(
sncl.network,
@@ -340,7 +344,7 @@ class EdgeFactory(TimeseriesFactory):
sncl.location,
sncl.channel,
starttime,
endtime,
endtime + half_delta,
)
except TypeError:
# get_waveforms() fails if no data is returned from Edge
Loading