Skip to content

Commit

Permalink
Merge branch 'develop' into amp-pick-from-p
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain authored Jun 28, 2024
2 parents 8bcc345 + c5daf19 commit 1be10be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eqcorrscan/core/template_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,12 @@ def _download_from_client(client, client_type, catalog, data_pad, process_len,
"Pick not associated with waveforms, will not use:"
" {0}".format(pick))
continue
if pick.waveform_id.channel_code is None:
Logger.error(
f"Missing waveform_id.channel_code for Pick {pick}.")
raise TemplateGenError(
"Ensure that all picks have complete "
"waveform_id attributes")
if all_channels:
channel_code = pick.waveform_id.channel_code[0:2] + "?"
else:
Expand Down

0 comments on commit 1be10be

Please sign in to comment.