mirror of https://github.com/m-labs/artiq.git
master/worker_impl: use ParentDatasetDB in examine mode. Closes #368
This commit is contained in:
parent
2f404bae41
commit
b095c94919
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue