support kernel functions outside classes #55

Closed
opened 2021-10-09 15:31:44 +08:00 by sb10q · 0 comments
from min_artiq import *

@kernel
def foo():
    pass


if __name__ == "__main__":
    core = Core()
    core.run(foo)
  File "/home/sb/nac3/nac3artiq/min_artiq.py", line 90, in run
    nac3.compile_method(id(get_defined_class(method)), method.__name__)
TypeError: parent object is not a class
```python from min_artiq import * @kernel def foo(): pass if __name__ == "__main__": core = Core() core.run(foo) ``` ``` File "/home/sb/nac3/nac3artiq/min_artiq.py", line 90, in run nac3.compile_method(id(get_defined_class(method)), method.__name__) TypeError: parent object is not a class ```
sb10q added the
low-priority
label 2021-10-09 15:31:44 +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#55
There is no content yet.