Merge branch 'develop' of ariadne.geophysik.ruhr-uni-bochum.de:/data/git/pylot into develop

This commit is contained in:
Marcel Paffrath 2016-06-27 14:47:44 +02:00
commit 253e9f4b1e

View File

@ -292,23 +292,26 @@ def reassess_pilot_event(root_dir, db_dir, event_id, out_dir=None, fn_param=None
for station in picks_dict.keys(): for station in picks_dict.keys():
fn_pattern = os.path.join(search_base, '{0}*'.format(station)) fn_pattern = os.path.join(search_base, '{0}*'.format(station))
try: try:
st = read(fn_pattern, format='GSE2')
except TypeError as e:
print(e.message)
st = read(fn_pattern) st = read(fn_pattern)
except ValueError as e: except TypeError as e:
if e.message == 'second must be in 0..59': if 'Unknown format for file' in e.message:
info = 'A known Error was raised. Please find the list of corrupted files and double-check these files.' try:
datacheck.append(fn_pattern + ' (time info)\n') st = read(fn_pattern, format='GSE2')
continue except ValueError as e:
else: if e.message == 'second must be in 0..59':
raise ValueError(e.message) info = 'A known Error was raised. Please find the list of corrupted files and double-check these files.'
except Exception as e: datacheck.append(fn_pattern + ' (time info)\n')
if 'No file matching file pattern:' in e.message: continue
if verbosity > 0: else:
warnings.warn('no waveform data found for station {station}'.format(station=station), RuntimeWarning) raise ValueError(e.message)
datacheck.append(fn_pattern + ' (no data)\n') except Exception as e:
continue if 'No file matching file pattern:' in e.message:
if verbosity > 0:
warnings.warn('no waveform data found for station {station}'.format(station=station), RuntimeWarning)
datacheck.append(fn_pattern + ' (no data)\n')
continue
else:
raise e
else: else:
raise e raise e
for phase in picks_dict[station].keys(): for phase in picks_dict[station].keys():