urbanlc.model.dataloader.parse_paths#

urbanlc.model.dataloader.parse_paths(root: str, filename_glob: str, exclude: Optional[List[str]] = None)#

Parse paths of files matching a certain pattern in the given root directory, excluding any paths that contain the specified exclusion keywords.

Parameters:
  • root – Root directory to start the search.

  • filename_glob – Glob pattern to match the filenames.

  • exclude – List of strings to exclude from the matched filenames.

Returns:

List of paths matching the criteria.