Closedown

This commit is contained in:
x07maop
2016-03-30 13:42:25 +02:00
parent 78401a40f8
commit 67bb338fb0

View File

@@ -15,8 +15,9 @@ class DataLayout( ch.psi.pshell.data.LayoutTable):
def getDatasetName(self, scan):
global FILENAME, data_file
name = get_context().name if FILENAME is None else FILENAME
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 FILENAME
print "Opened data file: " + get_context().path + "/" + data_file
return data_file
controller.dataManager.setLayout(DataLayout())