Startup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user