File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22title : " Writing your own diagnostic script"
33teaching : 20
44exercises : 30
5- compatibility : ESMValTool v2.9 .0
5+ compatibility : ESMValTool v2.14 .0
66
77questions :
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,
You can’t perform that action at this time.
0 commit comments