imas.ids_factory.IDSFactory¶
-
class imas.ids_factory.IDSFactory(version: str | None =
None, xml_path: str | Path | None =None)¶ Bases:
objectFactory class generating IDSToplevel elements for specific DD versions.
Example:
>>> factory = IDSFactory() >>> factory.core_profiles() <imas.ids_toplevel.IDSToplevel object at 0x7f6afa03cdf0> >>> factory.new("core_profiles") <imas.ids_toplevel.IDSToplevel object at 0x7f6afa03ccd0>-
__init__(version: str | None =
None, xml_path: str | Path | None =None)¶ Create a new IDS Factory
See
imas.dd_zip.dd_etree()for further details on theversionandxml_patharguments.
Methods
__init__([version, xml_path])Create a new IDS Factory
exists(ids_name)Check if an IDS type with the given name exists.
Get a list of all known IDS names in the loaded Data Dictionary
new(ids_name, *[, _lazy])Create a new IDSToplevel element for the provided IDS name
Attributes
Get the DD version used by this IDS factory
Get the DD version used by this IDS factory
-
__init__(version: str | None =
Last update:
2026-01-28