[add] tests for picking with missing trace in stream

This commit is contained in:
Darius Arnold
2018-07-20 13:01:38 +02:00
parent 318ca25ef8
commit 153beff663
2 changed files with 17 additions and 1 deletions

View File

@@ -1052,7 +1052,7 @@ def autopickstation(wfstream, pickparam, verbose=False, iplot=0, fig_dict=None,
station = AutopickStation(wfstream, pickparam, verbose, iplot, fig_dict, metadata, origin)
return station.autopickstation()
except MissingTraceException as e:
# Either vertical or both horizontal traces are missing, autopickstation() will return default results
# Either vertical or both horizontal traces are missing
print(e)
return None