Skip to content

Commit

Permalink
More verbose output in extract_event_traces.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geojunky committed Nov 10, 2022
1 parent c2672d9 commit 3d80407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seismic/extract_event_traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def extract_data(catalog, inventory, waveform_getter, event_trace_datafile,
log.setLevel(logging.INFO)

# descriptions
descs = {'P': 'P-wave', 'S': 'S-wave', 'SW': 'Surace-wave'}
descs = {'P': 'P-wave', 'S': 'S-wave', 'SW': 'Surface-wave'}

# initialize event time-window dict
request_window = defaultdict(tuple) # seconds
Expand Down Expand Up @@ -553,9 +553,9 @@ def extract_data(catalog, inventory, waveform_getter, event_trace_datafile,
# end for

if stream_count == 0:
log.warning("No traces found!")
log.warning("{}: No traces found!".format(nsl))
else:
log.info("Wrote {} {} streams to output file".format(stream_count, descs[wave]))
log.info("{}: Wrote {} {} streams to output file".format(nsl, stream_count, descs[wave]))
# end if
# end if
# end for
Expand Down

0 comments on commit 3d80407

Please sign in to comment.