def _axis_list_handler (self,msg):
   try:
     if self.current_server \
           and getattr(msg,'from') == self.current_server.addr: \
       mequtils.set_axis_list(msg.payload);
   except:
     print 'exception in meqserver._axis_list_handler: ',sys.exc_info();
     traceback.print_exc();
示例#2
0
 def _axis_list_handler(self, msg):
     try:
         if self.current_server \
               and getattr(msg,'from') == self.current_server.addr:                 \
                     mequtils.set_axis_list(msg.payload)
     except:
         print('exception in meqserver._axis_list_handler: ',
               sys.exc_info())
         traceback.print_exc()
示例#3
0
def update_forest_state (fst,merge=False):
  """Updates forest state record and notifies subscribers.""";
  global _forest_state;
  global _forest_state_obj;
  if merge:
    _forest_state.update(fst);
  else:
    _forest_state = fst;
  # check the axis list and update internals
  axislist = fst.get('axis_list',None);
  if axislist:
    mequtils.set_axis_list(axislist);
  _forest_state_obj.emit(SIGNAL("state"),_forest_state,);
示例#4
0
def update_forest_state(fst, merge=False):
    """Updates forest state record and notifies subscribers."""
    global _forest_state
    global _forest_state_obj
    if merge:
        _forest_state.update(fst)
    else:
        _forest_state = fst
    # check the axis list and update internals
    axislist = fst.get('axis_list', None)
    if axislist:
        mequtils.set_axis_list(axislist)
    _forest_state_obj.emit(
        SIGNAL("state"),
        _forest_state,
    )