This commit is contained in:
x07maop
2016-03-11 11:15:37 +01:00
parent f53c8d236f
commit 87f19f2623

View File

@@ -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