forked from M-Labs/artiq
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 DBKeys:
|
||||
comm = Device()
|
||||
core = Device()
|
||||
file = Argument()
|
||||
|
||||
def run(self):
|
||||
with open(self.file, "rb") as f:
|
||||
self.comm.load(f.read())
|
||||
self.comm.run("run")
|
||||
self.comm.serve(dict(), dict())
|
||||
self.core.comm.load(f.read())
|
||||
self.core.comm.run("run")
|
||||
self.core.comm.serve(dict(), dict())
|
||||
|
||||
|
||||
class SimpleParamLogger:
|
||||
|
Loading…
Reference in New Issue
Block a user