bugfix: eventID is now appended to the path in autoPyLoT if eventID is given in autoPyLoT.in

This commit is contained in:
Sebastian Wehling-Benatelli 2015-05-27 08:48:07 +02:00
parent b9ce5b4f41
commit a239de26e8

View File

@ -68,11 +68,15 @@ def autoPyLoT(inputfile):
# process each event in database
datapath = datastructure.expandDataPath()
if not parameter.hasParam('eventID'):
for event in [events for events in glob.glob(os.path.join(datapath, '*')) if os.path.isdir(events)]:
for event in [events for events in
glob.glob(os.path.join(datapath, '*'))
if os.path.isdir(events)]:
data.setWFData(glob.glob(os.path.join(datapath, event, '*')))
print data
else:
data.setWFData(glob.glob(os.path.join(datapath, '*')))
data.setWFData(glob.glob(os.path.join(datapath,
parameter.getParam('eventID'),
'*')))
print data