Skip to content

Commit

Permalink
worker: fix handling of archive parameter during dataset get in examine
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jan 7, 2017
1 parent c2bddd6 commit 780d6d1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion artiq/master/worker_impl.py
Original file line number Diff line number Diff line change
@@ -136,10 +136,21 @@ def get_exp(file, class_name):
class ExamineDeviceMgr:
get_device_db = make_parent_action("get_device_db")

@staticmethod
def get(name):
return DummyDevice()


class ExamineDatasetMgr:
@staticmethod
def get(key, archive=False):
return ParentDatasetDB.get(key)

@staticmethod
def update(self, mod):
pass


def examine(device_mgr, dataset_mgr, file):
module = file_import(file)
for class_name, exp_class in module.__dict__.items():
@@ -252,7 +263,7 @@ def main():
f["expid"] = pyon.encode(expid)
put_object({"action": "completed"})
elif action == "examine":
examine(ExamineDeviceMgr, ParentDatasetDB, obj["file"])
examine(ExamineDeviceMgr, ExamineDatasetMgr, obj["file"])
put_object({"action": "completed"})
elif action == "terminate":
break

0 comments on commit 780d6d1

Please sign in to comment.