artiq_run: port to NAC3 (WIP)

This commit is contained in:
Sebastien Bourdeauducq 2021-11-10 21:31:03 +08:00
parent df87cc88d6
commit a8129093df
1 changed files with 1 additions and 7 deletions

View File

@ -14,11 +14,8 @@ from sipyco import common_args
from artiq import __version__ as artiq_version from artiq import __version__ as artiq_version
from artiq.language.environment import EnvExperiment, ProcessArgumentManager from artiq.language.environment import EnvExperiment, ProcessArgumentManager
from artiq.language.types import TBool
from artiq.master.databases import DeviceDB, DatasetDB from artiq.master.databases import DeviceDB, DatasetDB
from artiq.master.worker_db import DeviceManager, DatasetManager from artiq.master.worker_db import DeviceManager, DatasetManager
from artiq.coredevice.core import CompileError, host_only
from artiq.compiler.embedding import EmbeddingMap
from artiq.compiler import import_cache from artiq.compiler import import_cache
from artiq.tools import * from artiq.tools import *
@ -92,10 +89,9 @@ class DummyScheduler:
def get_status(self): def get_status(self):
return dict() return dict()
def check_pause(self, rid=None) -> TBool: def check_pause(self, rid=None) -> bool:
return False return False
@host_only
def pause(self): def pause(self):
pass pass
@ -178,8 +174,6 @@ def run(with_file=False):
exp_inst.prepare() exp_inst.prepare()
exp_inst.run() exp_inst.run()
exp_inst.analyze() exp_inst.analyze()
except CompileError as error:
return
except Exception as exn: except Exception as exn:
if hasattr(exn, "artiq_core_exception"): if hasattr(exn, "artiq_core_exception"):
print(exn.artiq_core_exception, file=sys.stderr) print(exn.artiq_core_exception, file=sys.stderr)