Ejemplo n.º 1
0
 def reset_default_config(self):
     copyfile(self.cam_config_dir + 'default_backup.ccf',
              self.cam_current_ccf)
     copyfile(self.cam_config_dir + 'default_backup.mcf',
              self.fg_current_mcf)
     self._load_cam_config()
     SISO.Fg_loadConfig(self.fg, self.cam_config_dir + 'current.mcf')
Ejemplo n.º 2
0
    def load_config(self, filename=None, parent=None):
        if filename is None:
            filename = load_filename(directory=self.cam_config_dir,
                                     file_filter='*.ccf',
                                     parent=parent)
        self.cam_dict = load_dict_from_file(filename)
        self._load_cam_config()
        SISO.Fg_loadConfig(self.fg, filename[:-3] + 'mcf')

        print('new config loaded')