def mlstep(): global myclientrte myclientrte = stack.routetosender() sim.op()
def send_event(self, eventname, data=None, target=None): # On the sim side, target is obtained from the currently-parsed stack command target = target or stack.routetosender() or [b'*'] pydata = msgpack.packb(data, default=encode_ndarray, use_bin_type=True) self.event_io.send_multipart(target + [eventname, pydata])