Skip to content

Commit 92db104

Browse files
committed
Minor changes for dry-runs
1 parent c355147 commit 92db104

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

seismic/extract_event_traces.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,6 @@ def closure_get_waveforms(network, station, location, channel, starttime, endtim
258258
coord = curr_inv.get_coordinates(nsl + '.' + cha)
259259
sta_lon, sta_lat = coord['longitude'], coord['latitude']
260260

261-
if(dry_run):
262-
log.info('{}: Extract {}-data between {} - {} s around event'. \
263-
format(nsl, wave, *request_window))
264-
continue
265-
# end if
266-
267261
# set start- and end-times
268262
st, et = fds.get_recording_timespan(network=net, station=sta, location=loc)
269263
if(time_range[0] is None):
@@ -293,6 +287,9 @@ def closure_get_waveforms(network, station, location, channel, starttime, endtim
293287
log.info('A total of {} events retained in catalog.\n'.format(len(curr_cat)))
294288

295289
log.info('Extracting data windows [{} -- {}] s around events..\n'.format(*request_window))
290+
291+
if(dry_run): continue # nothing more to do for dry-runs
292+
296293
stream_count = 0
297294
sta_stream = Stream()
298295
status = DataFrame()

0 commit comments

Comments
 (0)