mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
Revert "language: check_unprocessed_arguments after constructing experiment"
This reverts commit d7240c17fc
.
This commit is contained in:
parent
d7240c17fc
commit
ec5c1b2478
@ -53,8 +53,6 @@ def main():
|
|||||||
arguments = parse_arguments(args.arguments)
|
arguments = parse_arguments(args.arguments)
|
||||||
argument_mgr = ProcessArgumentManager(arguments)
|
argument_mgr = ProcessArgumentManager(arguments)
|
||||||
exp_inst = exp((device_mgr, dataset_mgr, argument_mgr, {}))
|
exp_inst = exp((device_mgr, dataset_mgr, argument_mgr, {}))
|
||||||
argument_mgr.check_unprocessed_arguments()
|
|
||||||
|
|
||||||
|
|
||||||
if not hasattr(exp.run, "artiq_embedded"):
|
if not hasattr(exp.run, "artiq_embedded"):
|
||||||
raise ValueError("Experiment entry point must be a kernel")
|
raise ValueError("Experiment entry point must be a kernel")
|
||||||
|
@ -184,9 +184,7 @@ def _build_experiment(device_mgr, dataset_mgr, args):
|
|||||||
"arguments": arguments
|
"arguments": arguments
|
||||||
}
|
}
|
||||||
device_mgr.virtual_devices["scheduler"].expid = expid
|
device_mgr.virtual_devices["scheduler"].expid = expid
|
||||||
exp_inst = get_experiment(module, args.class_name)(managers)
|
return get_experiment(module, args.class_name)(managers)
|
||||||
argument_mgr.check_unprocessed_arguments()
|
|
||||||
return exp_inst
|
|
||||||
|
|
||||||
|
|
||||||
def run(with_file=False):
|
def run(with_file=False):
|
||||||
|
@ -333,7 +333,6 @@ def main():
|
|||||||
os.chdir(dirname)
|
os.chdir(dirname)
|
||||||
argument_mgr = ProcessArgumentManager(expid["arguments"])
|
argument_mgr = ProcessArgumentManager(expid["arguments"])
|
||||||
exp_inst = exp((device_mgr, dataset_mgr, argument_mgr, {}))
|
exp_inst = exp((device_mgr, dataset_mgr, argument_mgr, {}))
|
||||||
argument_mgr.check_unprocessed_arguments()
|
|
||||||
put_completed()
|
put_completed()
|
||||||
elif action == "prepare":
|
elif action == "prepare":
|
||||||
exp_inst.prepare()
|
exp_inst.prepare()
|
||||||
|
Loading…
Reference in New Issue
Block a user