sup3r.preprocessing.utilities.expand_paths

Contents

sup3r.preprocessing.utilities.expand_paths#

expand_paths(fps)[source]#

Expand path(s)

Parameter#

fpsstr or pathlib.Path or any Sequence of those

One or multiple paths to file

returns:

list[str] – A list of expanded unique and sorted paths as str

Examples

>>> expand_paths("myfile.h5")
>>> expand_paths(["myfile.h5", "*.hdf"])