Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions esmvalcore/io/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,13 @@ def find_data(self, **facets: FacetValue) -> list[LocalFile]:
files.sort() # sorting makes it easier to see what was found

if "timerange" in facets:
found_files = bool(files)
files = _select_files(files, facets["timerange"])
if not files and found_files:
self.debug_info += (
f" within the requested timerange {facets['timerange']}"
)

return files

def _path2facets(self, path: Path, add_timerange: bool) -> dict[str, str]:
Expand Down