imas.dd_zip.dd_etree

imas.dd_zip.dd_etree(version=None, xml_path=None)

Return the DD element tree corresponding to the provided dd_version or xml_file.

By default (dd_version and dd_xml are not supplied), this will attempt to get the version from the environment (IMAS_VERSION) and use the latest available version as fallback.

You can also specify a specific DD version to use (e.g. “3.38.1”) or point to a specific data-dictionary XML file. These options are exclusive.

Parameters:
version=None

DD version string, e.g. “3.38.1”.

xml_path=None

XML file containing data dictionary definition.


Last update: 2026-01-28