Skip to content

Commit

Permalink
Set pick phase hint based on event picks phase hints
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain committed Nov 12, 2024
1 parent d5fc361 commit 571e54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eqcorrscan/core/lag_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def xcorr_pick_family(family, stream, shift_len=0.2, min_cc=0.4,
# detection.extract_stream
picked_sids = {p.waveform_id.get_seed_string()}
for sid in picked_sids:
_sid_picks = [p for p in family.template.event
_sid_picks = [p for p in family.template.event.picks
if p.waveform_id.get_seed_string() == sid]
_sid_picks.sort(key=lambda p: p.time)
if len(_sid_picks) > 1:
Expand Down

0 comments on commit 571e54f

Please sign in to comment.