From 523c4e8e88460f60c95e9b5bf14fbafcddecef5d Mon Sep 17 00:00:00 2001 From: x07maop Date: Mon, 24 Aug 2015 12:15:33 +0200 Subject: [PATCH] Closedown --- script/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/local.py b/script/local.py index aeade35..30b4a73 100644 --- a/script/local.py +++ b/script/local.py @@ -1,7 +1,7 @@ ################################################################################################### # Deployment specific global definitions - executed after startup.py ################################################################################################### - +MODE = None #Uncomment this line to create the simulated devices needed to the tutorial scripts. #run("tutorial/devices") @@ -13,7 +13,7 @@ class Strategy(ch.psi.pshell.data.ScanPersistenceStrategyTable): return time.strftime('%Y%m%d%H%M%S') + '_' + controller.getExecutingContext() + '_logs' def getDatasetName(self, scan): - return time.strftime('%Y%m%d%H%M%S') + '_' + controller.getExecutingContext() + '_' + str(controller.dataManager.getScanIndex()).zfill(4) + return time.strftime('%Y%m%d%H%M%S') + '_' + controller.getExecutingContext() +'_' + str(MODE) + '_' + str(controller.dataManager.getScanIndex()).zfill(4) controller.dataManager.setScanStrategy(Strategy())