From ec5c1b2478e55987556a020f2762e7931b9f42c7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 30 Nov 2022 07:44:57 +0800 Subject: [PATCH] Revert "language: check_unprocessed_arguments after constructing experiment" This reverts commit d7240c17fc92b38685233563ac7528f2c2cc577b. --- artiq/frontend/artiq_compile.py | 2 -- artiq/frontend/artiq_run.py | 4 +--- artiq/master/worker_impl.py | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/artiq/frontend/artiq_compile.py b/artiq/frontend/artiq_compile.py index 918a58c65..1609971e0 100755 --- a/artiq/frontend/artiq_compile.py +++ b/artiq/frontend/artiq_compile.py @@ -53,8 +53,6 @@ def main(): arguments = parse_arguments(args.arguments) argument_mgr = ProcessArgumentManager(arguments) exp_inst = exp((device_mgr, dataset_mgr, argument_mgr, {})) - argument_mgr.check_unprocessed_arguments() - if not hasattr(exp.run, "artiq_embedded"): raise ValueError("Experiment entry point must be a kernel") diff --git a/artiq/frontend/artiq_run.py b/artiq/frontend/artiq_run.py index c3d548c26..21baf3f05 100755 --- a/artiq/frontend/artiq_run.py +++ b/artiq/frontend/artiq_run.py @@ -184,9 +184,7 @@ def _build_experiment(device_mgr, dataset_mgr, args): "arguments": arguments } device_mgr.virtual_devices["scheduler"].expid = expid - exp_inst = get_experiment(module, args.class_name)(managers) - argument_mgr.check_unprocessed_arguments() - return exp_inst + return get_experiment(module, args.class_name)(managers) def run(with_file=False): diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index 45c7308c0..33d34ddf8 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -333,7 +333,6 @@ def main(): os.chdir(dirname) argument_mgr = ProcessArgumentManager(expid["arguments"]) exp_inst = exp((device_mgr, dataset_mgr, argument_mgr, {})) - argument_mgr.check_unprocessed_arguments() put_completed() elif action == "prepare": exp_inst.prepare()