Skip to content

Commit

Permalink
plotting.seismic: fix station_var_red_plot for empty multi-event
Browse files Browse the repository at this point in the history
  • Loading branch information
hvasbath committed Mar 24, 2024
1 parent c9bda18 commit 85db0bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions beat/plotting/seismic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,13 @@ def target_network_station(target):

cg_to_target_codes = utility.gather(unique_target_codes, lambda t: t[3])

if len(ns_id_to_target_codes) == 0:
logger.info(
"Did not find targets for event %s, skipping plotting ..."
% event.__str__()
)
continue

# get channel group specific mean variance reductions
cg_var_reductions = {}
for cg, target_codes in cg_to_target_codes.items():
Expand Down

0 comments on commit 85db0bc

Please sign in to comment.