mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
master/worker_impl: use ParentDatasetDB in examine mode. Closes #368
This commit is contained in:
parent
a53d32c24e
commit
774ecceaba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user