Example #1
0
    def on_recompile_connection_table(self, *args, **kwargs):
        logger.info('recompile connection table called')
        # get list of globals
        globals_files = self.BLACS['settings'].get_value(
            Setting, 'globals_list')
        # Remove unicode encoding so that zprocess.locking doesn't crash
        for i in range(len(globals_files)):
            globals_files[i] = str(globals_files[i])

        # What the output generate_sequence_id should look like
        try:
            sequence_id_format = self.BLACS['exp_config'].get(
                'runmanager', 'sequence_id_format')
            # Better not contain slashes:
            sequence_id_format = sequence_id_format.replace(os.path.sep, "")
        except (LabConfig.NoOptionError, LabConfig.NoSectionError):
            sequence_id_format = '%Y%m%dT%H%M%S'

        CompileAndRestart(self.BLACS,
                          globals_files,
                          self.BLACS['exp_config'].get('paths',
                                                       'connection_table_py'),
                          self.BLACS['exp_config'].get('paths',
                                                       'connection_table_h5'),
                          sequence_id_format,
                          close_notification_func=self.close_notification_func)
Example #2
0
 def on_recompile_connection_table(self, *args, **kwargs):
     logger.info('recompile connection table called')
     # get list of globals
     globals_files = self.BLACS['settings'].get_value(
         Setting, 'globals_list')
     # Remove unicode encoding so that zprocess.locking doesn't crash
     for i in range(len(globals_files)):
         globals_files[i] = str(globals_files[i])
     CompileAndRestart(self.BLACS,
                       globals_files,
                       self.BLACS['exp_config'].get('paths',
                                                    'connection_table_py'),
                       self.BLACS['exp_config'].get('paths',
                                                    'connection_table_h5'),
                       close_notification_func=self.close_notification_func)