prsctrl.data.util.find_all_data_hierarchies#

find_all_data_hierarchies(base_dir: Path | str) → list[tuple[Path, list[FullHierarchy]]][source]#

Find all datas.

Finds all series directories and then enumerates all groups inside the hdf5 file. Returns a list of paths series directories and all groups inside. These can be each can be passed directly to .PrsData to load a spectrum as data = PrsData(series_dir, hierarchy=hierarchy).

Parameters:

base_dir – Base directory to search.

Returns:

List of data paths.