diff --git a/script/local.py b/script/local.py index 4df8376..4d92fd4 100644 --- a/script/local.py +++ b/script/local.py @@ -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())