Skip to content

Commit 3666d1e

Browse files
committed
modifications to diagnostic script
1 parent 931d91b commit 3666d1e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

_episodes/08-diagnostics.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Writing your own diagnostic script"
33
teaching: 20
44
exercises: 30
5-
compatibility: ESMValTool v2.9.0
5+
compatibility: ESMValTool v2.14.0
66

77
questions:
88
- "How do I write a new diagnostic in ESMValTool?"
@@ -90,7 +90,10 @@ There are four main sections in the script:
9090
> 20:
9191
> 21: def get_provenance_record(attributes, ancestor_files):
9292
> 22: """Create a provenance record describing the diagnostic data and plot."""
93-
> 23: caption = caption = attributes['caption'].format(**attributes)
93+
> 23: # Associated recipe uses contains a caption string with placeholders
94+
> 24: # like {long_name} that are now populated from attributes dictionary.
95+
> 25: # Note that for simple recipes, caption can be set here as a simple string
96+
> 23: caption = caption = attributes['caption'].format(**attributes)
9497
> 24:
9598
> 25: record = {
9699
> 26: 'caption': caption,

0 commit comments

Comments
 (0)