mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
artiq_run/ELFRunner: create a core device object (necessary for runtime exception processing)
This commit is contained in:
parent
5df446ec4b
commit
8a796a6818
@ -21,14 +21,14 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class ELFRunner(Experiment, AutoDB):
|
class ELFRunner(Experiment, AutoDB):
|
||||||
class DBKeys:
|
class DBKeys:
|
||||||
comm = Device()
|
core = Device()
|
||||||
file = Argument()
|
file = Argument()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
with open(self.file, "rb") as f:
|
with open(self.file, "rb") as f:
|
||||||
self.comm.load(f.read())
|
self.core.comm.load(f.read())
|
||||||
self.comm.run("run")
|
self.core.comm.run("run")
|
||||||
self.comm.serve(dict(), dict())
|
self.core.comm.serve(dict(), dict())
|
||||||
|
|
||||||
|
|
||||||
class SimpleParamLogger:
|
class SimpleParamLogger:
|
||||||
|
Loading…
Reference in New Issue
Block a user