forked from M-Labs/artiq
1
0
Fork 0

master: Fixup 32db6ff978 (argument_ui support)

This was lost in the ndscan diff upstreaming process
due to other Oxford-local changes in artiq.master.worker.
This commit is contained in:
David Nadlinger 2022-06-19 11:33:40 +01:00
parent 48cb111035
commit dd928fc014
1 changed files with 8 additions and 2 deletions

View File

@ -301,8 +301,14 @@ class Worker:
await self._create_process(logging.WARNING)
r = dict()
def register(class_name, name, arginfo, scheduler_defaults):
r[class_name] = {"name": name, "arginfo": arginfo, "scheduler_defaults": scheduler_defaults}
def register(class_name, name, arginfo, argument_ui,
scheduler_defaults):
r[class_name] = {
"name": name,
"arginfo": arginfo,
"argument_ui": argument_ui,
"scheduler_defaults": scheduler_defaults
}
self.register_experiment = register
await self._worker_action({"action": "examine", "file": file},
timeout)