data_io module
- class data_io.DataSet(data_path: List[str] | str)[source]
Bases:
object
Methods
evaluate_regex_path
(data_path)Take the given regular expression to generate a list of paths that match it.
find_base_path_in_regex
(path_regex)Takes a regular expression for a file path and determines the static part of the given path regex.
expand_data_path
get_common_root
get_data_path
get_file_list
- static evaluate_regex_path(data_path: str)[source]
Take the given regular expression to generate a list of paths that match it.
- Parameters:
- data_pathstr
The regular expression that is used to select files.
- Returns:
- List[str]
A list of paths matching the regular expression.