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")
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)
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)
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)