Example #1
0
 def snapshot(self, *args, **kwargs):
     req = ServerInstruction(operation=Operation.call,
                             call_spec=CallSpec(target=self.remotePath +
                                                '.snapshot',
                                                args=args,
                                                kwargs=kwargs))
     return self.askServer(req)
Example #2
0
 def call(self, target, *args, **kwargs):
     msg = ServerInstruction(operation=Operation.call,
                             call_spec=CallSpec(
                                 target=target,
                                 args=args,
                                 kwargs=kwargs,
                             ))
     return self.ask(msg)
Example #3
0
 def snapshot(self, instrument: str = None, *args, **kwargs):
     msg = ServerInstruction(operation=Operation.call,
                             call_spec=CallSpec(
                                 target='snapshot' if instrument is None
                                 else f"{instrument}.snapshot",
                                 args=args,
                                 kwargs=kwargs,
                             ))
     return self.ask(msg)
Example #4
0
 def wrap(*a, **k):
     msg = ServerInstruction(operation=Operation.call,
                             call_spec=CallSpec(target=bp.path,
                                                args=a,
                                                kwargs=k))
     return self.askServer(msg)
Example #5
0
 def _remoteGet(self):
     msg = ServerInstruction(operation=Operation.call,
                             call_spec=CallSpec(target=self.remotePath, ))
     return self.askServer(msg)
Example #6
0
 def _remoteSet(self, value: Any):
     msg = ServerInstruction(operation=Operation.call,
                             call_spec=CallSpec(target=self.remotePath,
                                                args=(value, )))
     return self.askServer(msg)