uvex_transients.phase_space.files.find_maps#

uvex_transients.phase_space.files.find_maps(paths: Sequence[str | Path]) → list[Path][source]#

Resolve the paths a command was given to the directories of maps.

A directory that holds a points.ecsv is a map. One that does not is taken to be the output of a run, and its subdirectories that are maps are used, in order of name. A points.ecsv file stands for its directory.

Parameters:

paths (sequence of str or pathlib.Path) – Directories (or points files).

Returns:

The directories of the maps, in the order given, without repeats.

Return type:

list of pathlib.Path

Raises:

FileNotFoundError – If a path does not exist, or is neither a map nor holds any.