RPC to method of arbitrary host object should be supported #282

Open
opened 2022-04-27 17:34:52 +08:00 by sb10q · 0 comments
Owner
from artiq.experiment import *
from artiq.coredevice.core import Core

class XXX:
    @rpc
    def yyy(self):
        print("hello")

@nac3
class RPCobj(EnvExperiment):
    core: KernelInvariant[Core]

    def build(self):
        self.setattr_device("core")
        self.xxx = XXX()

    @kernel
    def run(self):
        self.xxx.yyy()

currently fails:

`artiq_run_foo.RPCobj::xxx` field/method does not exist at foo.py: line 19 column 9
``` from artiq.experiment import * from artiq.coredevice.core import Core class XXX: @rpc def yyy(self): print("hello") @nac3 class RPCobj(EnvExperiment): core: KernelInvariant[Core] def build(self): self.setattr_device("core") self.xxx = XXX() @kernel def run(self): self.xxx.yyy() ``` currently fails: ``` `artiq_run_foo.RPCobj::xxx` field/method does not exist at foo.py: line 19 column 9 ```
sb10q added this to the Beta milestone 2022-04-27 17:34:52 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#282
No description provided.