Commit f53bb807 authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

better error messages when waveforms cannot be found

parent 3347607f
......@@ -57,7 +57,14 @@ def scan(
(rec.codes, i) for (i, rec) in enumerate(receivers)
if rec.codes not in blacklist)
for data_path in config.data_paths:
if not op.exists(data_path):
raise common.LassieError(
'waveform data path does not exist: %s' % data_path)
p = pile.make_pile(config.data_paths, fileformat='detect')
if p.is_empty():
raise common.LassieError('no usable waveforms found')
ngridpoints = grid.size()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment