Skip to content

Commit 25273e6

Browse files
authored
Major bug fix when same TYPE records found
Before fix, Gisola could use e.g. NET.STA.LOC.HH as NET.STA.LOC.BH and vice versa. Theoretically, since both types of traces passed the filters, both are equivalent and qualified for the process. Rationally, MT solution will not change, but streams could be displayed wrong in terms only of channel type (at the level of station).
1 parent 366ad63 commit 25273e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/stream.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,6 @@ def verify(tr):
184184
endtime=config.org.time+math.ceil(max([tl for tl in config.windowRules]))+1
185185
config.st.trim(config.org.time, endtime)
186186

187-
# save corrected waveforms
188-
config.logger.info(('Saving corrected waveforms in one mseed file in ' + \
189-
'{}').format(os.path.join(config.workdir,'streams_corrected.mseed')))
190-
config.st.write(os.path.join(config.workdir,'streams_corrected.mseed'), \
191-
format='MSEED')
192-
193187
# function runs for individual station/channel triplet in parallel
194188
def warning(func):
195189
def inner():
@@ -345,4 +339,10 @@ def prioritize():
345339
for sta in stations[config.cfg['Green']['MaxStations']:]:
346340
for tr in config.st.select(station=sta[0]):
347341
config.st.remove(tr)
342+
343+
# save corrected waveforms
344+
config.logger.info(('Saving corrected waveforms in one mseed file in ' + \
345+
'{}').format(os.path.join(config.workdir,'streams_corrected.mseed')))
346+
config.st.write(os.path.join(config.workdir,'streams_corrected.mseed'), \
347+
format='MSEED')
348348

0 commit comments

Comments
 (0)