We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6d7d76 commit 4400f4bCopy full SHA for 4400f4b
1 file changed
src/simdb/imas/metadata.py
@@ -117,7 +117,10 @@ def load_imas_metadata(ids_dist, entry) -> dict:
117
for ids_name, v in ids_dist.items():
118
ids = entry.get(ids_name, autoconvert=False)
119
# Explicitly convert the IDS to the target version
120
- ids = imas.convert_ids(ids, "4.1.0")
+ latest_dd_version = imas.dd_zip.latest_dd_version()
121
+ if latest_dd_version is None:
122
+ raise ValueError("Could not determine the latest DD version.")
123
+ ids = imas.convert_ids(ids, latest_dd_version)
124
for node in imas.util.tree_iter(ids):
125
metadata[extract_ids_path(str(node.coordinates)).replace("/",".")] = node.value
126
return metadata
0 commit comments