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.ecsvis 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. Apoints.ecsvfile stands for its directory.- Parameters:
paths (
sequenceofstrorpathlib.Path) – Directories (or points files).- Returns:
The directories of the maps, in the order given, without repeats.
- Return type:
listofpathlib.Path- Raises:
FileNotFoundError – If a path does not exist, or is neither a map nor holds any.