Skip to content

Commit

Permalink
Fix diagnostic filter (#713)
Browse files Browse the repository at this point in the history
Make syntax to select some diagnostics more intuitive.
  • Loading branch information
Javier Vegas-Regidor authored and bouweandela committed Jul 20, 2020
1 parent bc1f6a7 commit a84f490
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions esmvalcore/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ def run(recipe,
logger.info("Writing program log files to:\n%s", "\n".join(log_files))

cfg['skip-nonexistent'] = skip_nonexistent
if isinstance(diagnostics, str):
diagnostics = diagnostics.split(' ')
cfg['diagnostics'] = {
pattern if TASKSEP in pattern else pattern + TASKSEP + '*'
for pattern in diagnostics or ()
Expand Down

0 comments on commit a84f490

Please sign in to comment.