Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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
Пример #4
0
 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)
Пример #5
0
 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)
Пример #6
0
 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))
Пример #7
0
 def _save(self):
     pyon.store_file(self.pattern_file, self.patterns)
Пример #8
0
 def save(self):
     pyon.store_file(self.filename, self.data.read)
Пример #9
0
 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)
Пример #10
0
 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))
Пример #11
0
 def _save(self):
     pyon.store_file(self.pattern_file, self.patterns)
Пример #12
0
 def save(self):
     pyon.store_file(self.filename, self.data.read)