Skip to content

Commit

Permalink
sanitize output
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain committed Dec 11, 2024
1 parent 651413c commit c6ae0b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eqcorrscan/core/lag_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ def xcorr_pick_family(family, stream, shift_len=0.2, min_cc=0.4,
phase = phase_hints.get(tr.id, None)
if phase is None and stachan.channel[1][-1] in vertical_chans:
phase = 'P'
Logger.warning(f"Unknown phase hint for {tr.id} - assigning P")
Logger.debug(f"Unknown phase hint for {tr.id} - assigning P")
elif phase is None and stachan.channel[1][-1] in horizontal_chans:
phase = 'S'
Logger.warning(f"Unknown phase hint for {tr.id} - assigning S")
Logger.debug(f"Unknown phase hint for {tr.id} - assigning S")
_waveform_id = WaveformStreamID(seed_string=tr.id)
event.picks.append(Pick(
waveform_id=_waveform_id, time=picktime,
Expand Down
4 changes: 2 additions & 2 deletions eqcorrscan/core/match_filter/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def extract_stream(self, stream, length, prepick, all_vert=False,
pick = [p for p in pick
if p.waveform_id.channel_code == channel]
if len(pick) == 0:
Logger.info(
Logger.debug(

Check warning on line 400 in eqcorrscan/core/match_filter/detection.py

View check run for this annotation

Codecov / codecov/patch

eqcorrscan/core/match_filter/detection.py#L400

Added line #L400 was not covered by tests
"No pick for {0}.{1}".format(station, channel))
continue
elif len(pick) > 1:
Expand Down Expand Up @@ -430,7 +430,7 @@ def extract_stream(self, stream, length, prepick, all_vert=False,
length) < tr.stats.delta:
cut_stream += _tr
else:
Logger.info(
Logger.debug(
"Insufficient data length for {0}".format(tr.id))
return cut_stream

Expand Down

0 comments on commit c6ae0b1

Please sign in to comment.