Closedown

This commit is contained in:
x07maop
2015-08-24 12:06:28 +02:00
parent 4198766546
commit fe21915e0d

View File

@@ -6,6 +6,20 @@
#Uncomment this line to create the simulated devices needed to the tutorial scripts.
#run("tutorial/devices")
#This procedude is used to emulate file names generated by FDA
import ch.psi.pshell.data.ScanPersistenceStrategyTable
class Strategy(ch.psi.pshell.data.ScanPersistenceStrategyTable):
def getLogFileName(self):
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)
controller.dataManager.setScanStrategy(Strategy())
energy = None
class SimulatedEnergy(Writable):