iterate_subdirs
- HIRSPOD.iterate_subdirs(d_start, d_end, **extra)
Iterate through all subdirs in dataset.
Note that this does not check for existance of those directories.
Yields a 2-element tuple where the first contains information on year(/month/day), and the second is the path.
- Parameters:
d_start (datetime.date) – Starting date.
d_end (datetime.date) – Ending date
**extra – Any extra keyword arguments. This will be passed on to format self.basedir / self.subdir, in case the standard fields like year, month, etc. do not provide enough information.
- Yields:
pathlib.Path objects for each directory in the dataset containing files between d_start and d_end.