2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-07 17:43:34 +08:00

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 2f404bae41
commit b095c94919

View File

@ -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