forked from M-Labs/artiq
1
0
Fork 0

fix missing get_dataset_metadata

This commit is contained in:
Simon Renblad 2024-04-30 16:41:17 +08:00 committed by Sébastien Bourdeauducq
parent 24fe885b5c
commit 5fe47129ed
2 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,7 @@ def main():
"get_device_db": device_db.get_device_db, "get_device_db": device_db.get_device_db,
"get_device": device_db.get, "get_device": device_db.get,
"get_dataset": dataset_db.get, "get_dataset": dataset_db.get,
"get_dataset_metadata": dataset_db.get_metadata,
"update_dataset": dataset_db.update, "update_dataset": dataset_db.update,
"get_interactive_arguments": get_interactive_arguments, "get_interactive_arguments": get_interactive_arguments,
"scheduler_submit": scheduler.submit, "scheduler_submit": scheduler.submit,

View File

@ -73,6 +73,7 @@ class ParentDeviceDB:
class ParentDatasetDB: class ParentDatasetDB:
get = make_parent_action("get_dataset") get = make_parent_action("get_dataset")
update = make_parent_action("update_dataset") update = make_parent_action("update_dataset")
get_metadata = make_parent_action("get_dataset_metadata")
class Watchdog: class Watchdog:
@ -186,6 +187,10 @@ class ExamineDatasetMgr:
def get(key, archive=False): def get(key, archive=False):
return ParentDatasetDB.get(key) return ParentDatasetDB.get(key)
@staticmethod
def get_metadata(key):
return ParentDatasetDB.get_metadata(key)
def examine(device_mgr, dataset_mgr, file): def examine(device_mgr, dataset_mgr, file):
previous_keys = set(sys.modules.keys()) previous_keys = set(sys.modules.keys())