diff --git a/script/local.py b/script/local.py index 3631e46..dc46b5c 100644 --- a/script/local.py +++ b/script/local.py @@ -20,7 +20,21 @@ class Strategy(ch.psi.pshell.data.ScanPersistenceStrategyTable): print "Opened data file: " + str(controller.dataManager.output) + "/" + data_file return data_file controller.dataManager.setScanStrategy(Strategy()) - + +""" + import ch.psi.pshell.data.LayoutTable +class Layout( ch.psi.pshell.data.LayoutTable): + def getLogFileName(self): + return time.strftime('%Y%m%d%H%M%S') + '_' + get_context().name + '_logs' + + def getDatasetName(self, scan): + global FILENAME, data_file + name = get_context().name if FILENAME is None else FILENAME + data_file = time.strftime('%Y%m%d_%H%M') + '_' + name + '_' + str(get_context().index).zfill(4) + print "Opened data file: " + get_context().file + "/" + data_file + return data_file +controller.dataManager.setLayout(Layout()) +""" #Reading Energy Scan configuration file def getPars(element):