cherab.imas.ids.common.parse_ids_path_fragmentΒΆ

cherab.imas.ids.common.parse_ids_path_fragment(reference: str) IDSPathReferenceSourceΒΆ

Parse a same-document IMAS IDS path fragment.

Parameters:
reference: strΒΆ

A string in the form #ids[:occurrence][/idspath].

Returns:

IDSPathReference – Parsed IDS path reference.

Raises:

ValueError – If the reference is empty or does not follow the expected fragment syntax.