mirror of https://github.com/m-labs/artiq.git
worker_impl: save expid, rid, start_time
This commit is contained in:
parent
de002ac811
commit
1ae8b8ffd1
|
@ -205,6 +205,5 @@ class DatasetManager:
|
||||||
return self.ddb.get(key)
|
return self.ddb.get(key)
|
||||||
|
|
||||||
def write_hdf5(self, f):
|
def write_hdf5(self, f):
|
||||||
g = f.create_group("datasets")
|
|
||||||
for k, v in self.local.items():
|
for k, v in self.local.items():
|
||||||
g[k] = v
|
f[k] = v
|
||||||
|
|
|
@ -216,10 +216,11 @@ def main():
|
||||||
put_object({"action": "completed"})
|
put_object({"action": "completed"})
|
||||||
elif action == "write_results":
|
elif action == "write_results":
|
||||||
with get_hdf5_output(start_time, rid, exp.__name__) as f:
|
with get_hdf5_output(start_time, rid, exp.__name__) as f:
|
||||||
dataset_mgr.write_hdf5(f)
|
dataset_mgr.write_hdf5(f.create_group("datasets"))
|
||||||
f["artiq_version"] = artiq_version
|
f["artiq_version"] = artiq_version
|
||||||
if "repo_rev" in expid:
|
f["rid"] = rid
|
||||||
f["repo_rev"] = expid["repo_rev"]
|
f["start_time"] = start_time
|
||||||
|
f["expid"] = pyon.encode(expid)
|
||||||
put_object({"action": "completed"})
|
put_object({"action": "completed"})
|
||||||
elif action == "examine":
|
elif action == "examine":
|
||||||
examine(ExamineDeviceMgr, ParentDatasetDB, obj["file"])
|
examine(ExamineDeviceMgr, ParentDatasetDB, obj["file"])
|
||||||
|
|
Loading…
Reference in New Issue