imas_paraview.cli.parse_uri

imas_paraview.cli.parse_uri(uri)

Parses the URI according to the IMAS URI Scheme Documentation v0.3. Parses the URI and extracts the fragment part of the URI.

Example

>>> uri = "imas:hdf5?path=testdb#edge_profiles:1"
>>> parse_uri(uri)
("imas:hdf5?path=testdb", "edge_profiles", 1)
Parameters:
uri

URI to parse, should contain a fragment denoting the IDS name.

Returns:

A tuple with three elements.

  • uri_no_frag: URI without fragment part

  • ids_name: Name of the IDS.

  • occurrence: Occurrence number of the IDS.


Last update: 2026-03-11