From 78513916660b990b6abd79333ef3bc3b1fc5790c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 28 May 2016 12:57:04 -0500 Subject: [PATCH] artiq_compile: adapt to code changes --- artiq/frontend/artiq_compile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_compile.py b/artiq/frontend/artiq_compile.py index ed106548d..16d211399 100755 --- a/artiq/frontend/artiq_compile.py +++ b/artiq/frontend/artiq_compile.py @@ -4,6 +4,7 @@ import os, sys, logging, argparse from artiq.master.databases import DeviceDB, DatasetDB from artiq.master.worker_db import DeviceManager, DatasetManager +from artiq.language.environment import ProcessArgumentManager from artiq.coredevice.core import CompileError from artiq.tools import * @@ -44,14 +45,15 @@ def main(): module = file_import(args.file, prefix="artiq_run_") exp = get_experiment(module, args.experiment) arguments = parse_arguments(args.arguments) - exp_inst = exp(device_mgr, dataset_mgr, **arguments) + argument_mgr = ProcessArgumentManager(arguments) + exp_inst = exp((device_mgr, dataset_mgr, argument_mgr)) if not hasattr(exp.run, "artiq_embedded"): raise ValueError("Experiment entry point must be a kernel") core_name = exp.run.artiq_embedded.core_name core = getattr(exp_inst, core_name) - object_map, kernel_library, symbolizer = \ + object_map, kernel_library, _, _ = \ core.compile(exp.run, [exp_inst], {}, with_attr_writeback=False) except CompileError as error: