From c6ae0b17b13c216e90e9f544f64b3197217e157b Mon Sep 17 00:00:00 2001 From: Calum Chamberlain Date: Wed, 11 Dec 2024 13:46:13 +1300 Subject: [PATCH] sanitize output --- eqcorrscan/core/lag_calc.py | 4 ++-- eqcorrscan/core/match_filter/detection.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eqcorrscan/core/lag_calc.py b/eqcorrscan/core/lag_calc.py index eb69385e..1ac361d8 100644 --- a/eqcorrscan/core/lag_calc.py +++ b/eqcorrscan/core/lag_calc.py @@ -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, diff --git a/eqcorrscan/core/match_filter/detection.py b/eqcorrscan/core/match_filter/detection.py index cc98ef03..aba3e917 100644 --- a/eqcorrscan/core/match_filter/detection.py +++ b/eqcorrscan/core/match_filter/detection.py @@ -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( "No pick for {0}.{1}".format(station, channel)) continue elif len(pick) > 1: @@ -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