[bugfix] set locflag = 2 if traces could not be corrected

This commit is contained in:
Marcel Paffrath 2017-07-13 11:23:51 +02:00
parent 154f802f27
commit ac25f9cacb

View File

@ -201,7 +201,8 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even
metadata = read_metadata(parameter.get('invdir')) metadata = read_metadata(parameter.get('invdir'))
print("Restitute data ...") print("Restitute data ...")
corr_dat = restitute_data(wfdat.copy(), *metadata) corr_dat = restitute_data(wfdat.copy(), *metadata)
if not corr_dat:
locflag = 2
print('Working on event %s. Stations: %s' % (event, station)) print('Working on event %s. Stations: %s' % (event, station))
print(wfdat) print(wfdat)
########################################################## ##########################################################