-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
Milestone
Description
Describe the bug
--search_data=quick does not work as intended. The doc says:
When set to quick, search will stop as soon as a result is found.
This is not the case. For example, a recipe which requires fx variables fails if multiple versions of that fx file are available (e.g., from ESGF and locally).
However, setting --search_data=complete fixes this.
I guess the problem is here:
ESMValCore/esmvalcore/dataset.py
Lines 771 to 779 in 82b282f
| # 'quick' mode: if files are available from a higher | |
| # priority source, do not search lower priority sources. | |
| if self.session["search_data"] == "complete": | |
| try: | |
| check.data_availability(self, log=False) | |
| except InputFilesNotFound: | |
| pass # continue search for data | |
| else: | |
| return # use what has been found so far |
Replacing complete with quick should do the trick.
Reactions are currently unavailable