Skip to content

Commit 49c65db

Browse files
authored
Show all results on recipe results webpage (#1560)
* Show all results on results webpage * Fix test that depends on user's config-user.yml
1 parent e2ece52 commit 49c65db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

esmvalcore/_recipe.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,11 @@ def get_output(self) -> dict:
19051905
output['recipe_data'] = self._raw_recipe
19061906
output['task_output'] = {}
19071907

1908-
for task in self.tasks:
1908+
for task in self.tasks.flatten():
1909+
if self._cfg['remove_preproc_dir'] and isinstance(
1910+
task, PreprocessingTask):
1911+
# Skip preprocessing tasks that are deleted afterwards
1912+
continue
19091913
output['task_output'][task.name] = task.get_product_attributes()
19101914

19111915
return output

tests/sample_data/experimental/test_run_recipe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
CFG.update(esmvaltool_sample_data.get_rootpaths())
2323
CFG['drs']['CMIP6'] = 'SYNDA'
2424
CFG['max_parallel_tasks'] = 1
25+
CFG['remove_preproc_dir'] = False
2526

2627
AUTHOR_TAGS = {
2728
'authors': {

0 commit comments

Comments
 (0)