예제 #1
0
 def save_config_file(self):
     try:
         self.config["lasers"] = self.laser_db.raw_view
         config_path, _ = get_config_path(self.args, "_server")
         pyon.store_file(config_path, self.config)
     except Exception:
         log.warning("error when trying to save config data")
예제 #2
0
파일: databases.py 프로젝트: m-labs/artiq
 def save(self):
     data = {k: v[1] for k, v in self.data.raw_view.items() if v[0]}
     pyon.store_file(self.persist_file, data)
예제 #3
0
 def save(self):
     data = {k: d for k, d in self.data.raw_view.items() if d["persist"]}
     pyon.store_file(self.persist_file, data)
예제 #4
0
파일: wand_server.py 프로젝트: bnichol/wand
 def save_config_file(self):
     self.config["lasers"] = self.laser_db.raw_view
     config_path, _ = get_config_path(self.args, "_server")
     pyon.store_file(config_path, self.config)