forked from M-Labs/artiq
fix core.run invokation
This commit is contained in:
parent
5a3bf4894f
commit
1ea3cf48d6
|
@ -57,7 +57,7 @@ def kernel(function_or_method):
|
||||||
@wraps(function_or_method)
|
@wraps(function_or_method)
|
||||||
def run_on_core(self, *args, **kwargs):
|
def run_on_core(self, *args, **kwargs):
|
||||||
fake_method = SimpleNamespace(__self__=self, __name__=function_or_method.__name__)
|
fake_method = SimpleNamespace(__self__=self, __name__=function_or_method.__name__)
|
||||||
self.core.run(fake_method, *args, **kwargs)
|
self.core.run(fake_method, args, kwargs)
|
||||||
else:
|
else:
|
||||||
@wraps(function_or_method)
|
@wraps(function_or_method)
|
||||||
def run_on_core(*args, **kwargs):
|
def run_on_core(*args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue