master: experiment registry

This commit is contained in:
Sebastien Bourdeauducq 2015-01-29 19:59:16 +08:00
parent 26b1282b2b
commit e7dac4ab43
2 changed files with 17 additions and 2 deletions

View File

@ -38,6 +38,7 @@ def main():
pdb.hooks.append(simplephist) pdb.hooks.append(simplephist)
rtr = RTResults() rtr = RTResults()
repository = Repository() repository = Repository()
explist = FlatFileDB("explist.pyon")
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
atexit.register(lambda: loop.close()) atexit.register(lambda: loop.close())
@ -56,7 +57,8 @@ def main():
"master_ddb": ddb, "master_ddb": ddb,
"master_pdb": pdb, "master_pdb": pdb,
"master_schedule": scheduler, "master_schedule": scheduler,
"master_repository": repository "master_repository": repository,
"master_explist": explist
}) })
loop.run_until_complete(server_control.start( loop.run_until_complete(server_control.start(
args.bind, args.port_control)) args.bind, args.port_control))
@ -68,7 +70,8 @@ def main():
"devices": ddb.data, "devices": ddb.data,
"parameters": pdb.data, "parameters": pdb.data,
"parameters_simplehist": simplephist.history, "parameters_simplehist": simplephist.history,
"rt_results": rtr.groups "rt_results": rtr.groups,
"explist": explist.data
}) })
loop.run_until_complete(server_notify.start( loop.run_until_complete(server_notify.start(
args.bind, args.port_notify)) args.bind, args.port_notify))

12
examples/explist.pyon Normal file
View File

@ -0,0 +1,12 @@
{
"Flopping F simulation": {
"file": "flopping_f_simulation.py",
"unit": null,
"gui_file": "flopping_f_simulation_gui.py"
},
"RTIO skew": {
"file": "rtio_skew.py",
"unit": null,
"gui_file": null
}
}