From a239de26e8894aad0032fbdc0decc01e67b19c51 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 27 May 2015 08:48:07 +0200 Subject: [PATCH] bugfix: eventID is now appended to the path in autoPyLoT if eventID is given in autoPyLoT.in --- autoPyLoT.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 9128cfb1..a2c83d8c 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -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