def save(self): data = dict() for k, v in self.stateful_objects.items(): try: data[k] = _save_state(v) except: logger.warning("Failed to save state for object '%s'", k, exc_info=True) pyon.store_file(self.filename, data)
def setStabiliserDACs(self, cDacValue, fDacValue, verbose=False): """Update feedback DAC values""" self.set_DAC_values(CDAC=cDacValue,FDAC=fDacValue) dacValues = {'cDAC':cDacValue,'fDAC':fDacValue} pyon.store_file(self.fname, dacValues) #self.set_dataset("BField_stabiliser.cDAC", float(cDacValue), persist=True, broadcast=True) #self.set_dataset("BField_stabiliser.fDAC", float(fDacValue), persist=True, broadcast=True) #if verbose: # print("Update DACs {} {} --- Done.".format(int(cDacValue),int(fDacValue))) return dacValues
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_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)
def save_setpoints(self): """Save current set values to file""" pyon.store_file(self.fname, self.channels) logger.info("Saved '{}', channels: {}".format(self.fname, self.channels))
def _save(self): pyon.store_file(self.pattern_file, self.patterns)
def save(self): pyon.store_file(self.filename, self.data.read)
def save(self): data = {k: v[1] for k, v in self.data.read.items() if v[0]} pyon.store_file(self.persist_file, data)