support kernel functions outside classes #55
sb10q
commented 2021-10-09 15:31:44 +08:00
Owner
```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 2021-10-09 15:31:44 +08:00
low-priority
label
pca006132
referenced this issue from a commit 2021-10-10 16:26:17 +08:00
nac3artiq: implements #55, #56
pca006132
closed this issue 2021-10-10 16:26:24 +08:00
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#55
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?