forked from M-Labs/artiq
1
0
Fork 0

master/worker_impl: use ParentDatasetDB in examine mode. Closes #368

This commit is contained in:
Sebastien Bourdeauducq 2016-04-02 23:05:58 +08:00
parent a53d32c24e
commit 774ecceaba
1 changed files with 1 additions and 9 deletions

View File

@ -124,14 +124,6 @@ class ExamineDeviceMgr:
return None 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): def examine(device_mgr, dataset_mgr, file):
module = file_import(file) module = file_import(file)
for class_name, exp_class in module.__dict__.items(): for class_name, exp_class in module.__dict__.items():
@ -244,7 +236,7 @@ def main():
f.close() f.close()
put_object({"action": "completed"}) put_object({"action": "completed"})
elif action == "examine": elif action == "examine":
examine(ExamineDeviceMgr, DummyDatasetMgr, obj["file"]) examine(ExamineDeviceMgr, ParentDatasetDB, obj["file"])
put_object({"action": "completed"}) put_object({"action": "completed"})
elif action == "terminate": elif action == "terminate":
break break