artiq_run/ELFRunner: create a core device object (necessary for runtime exception processing)

This commit is contained in:
Sebastien Bourdeauducq 2015-04-30 10:16:24 +08:00
parent 5df446ec4b
commit 8a796a6818

View File

@ -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: