[bugfix] locflag was set active when initialized in tune mode without metadata

This commit is contained in:
Marcel Paffrath 2017-07-17 13:40:35 +02:00
parent f41a330606
commit 52f9e61c9f

View File

@ -201,7 +201,7 @@ 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: if not corr_dat and locflag:
locflag = 2 locflag = 2
print('Working on event %s. Stations: %s' % (event, station)) print('Working on event %s. Stations: %s' % (event, station))
print(wfdat) print(wfdat)