Skip to content

Commit

Permalink
handle index error that occurs when data has holes (#251)
Browse files Browse the repository at this point in the history
Co-authored-by: Auggie Marignier <augustin.marignier.14@ucl.ac.uk>
  • Loading branch information
auggiemarignier and Auggie Marignier committed May 16, 2023
1 parent 5e18e52 commit f419996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seismic/receiver_fn/rf_quality_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def main(input_file, output_file, temp_dir=None, parallel=True):
for station_id, station_stream3c in IterRfH5StationEvents(input_file):
try:
rf_quality_metrics_queue(write_queue, station_id, station_stream3c, similarity_eps)
except (ValueError, AssertionError) as e:
except (ValueError, AssertionError, IndexError) as e:
traceback.print_exc()
logger.error("Unhandled exception occurred in rf_quality_metrics_queue for station {}. "
"Data will be omitted for this station!\nError:\n{}".format(station_id, str(e)))
Expand Down

0 comments on commit f419996

Please sign in to comment.