From b095c94919254c5c80d44eb65175cee6e80d9176 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 2 Apr 2016 23:05:58 +0800 Subject: [PATCH] master/worker_impl: use ParentDatasetDB in examine mode. Closes #368 --- artiq/master/worker_impl.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index 649ec94be..722a1c9a8 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -124,14 +124,6 @@ class ExamineDeviceMgr: return None -class DummyDatasetMgr: - def set(key, value, broadcast=False, persist=False, save=True): - return None - - def get(key): - pass - - def examine(device_mgr, dataset_mgr, file): module = file_import(file) for class_name, exp_class in module.__dict__.items(): @@ -244,7 +236,7 @@ def main(): f.close() put_object({"action": "completed"}) elif action == "examine": - examine(ExamineDeviceMgr, DummyDatasetMgr, obj["file"]) + examine(ExamineDeviceMgr, ParentDatasetDB, obj["file"]) put_object({"action": "completed"}) elif action == "terminate": break