imas_paraview.imas_uri.uri_from_path

imas_paraview.imas_uri.uri_from_path(path: str | None) str | None

Create an IMAS URI from a local path.

Parameters:
path: str | None

Path to a local file. This should point to a valid file from the HDF5 backend (with extension .h5) or MDSplus backend (with extension .characteristics, .datafile or .tree).

Returns:

An IMAS URI pointing to the local file, or None if no URI could be constructed from the provided file.


Last update: 2026-03-11