Skip to content

Commit a4aefcf

Browse files
Docs: fix issue whereby dict object docstring not emerging
1 parent 7dc4e8c commit a4aefcf

File tree

1 file changed

+55
-4
lines changed

1 file changed

+55
-4
lines changed

visiontoolkit/constants.py

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
"""Configuration default values, applied if the user does not set otherwise.
2-
3-
TODO: DETAILED DOCS
4-
"""
1+
# Note: Sphinx autodoc requires dict object docstring to go *after* the
2+
# dict itself, so see below for the docs!
53
CONFIG_DEFAULTS = {
64
# *** Script running options ***
75
# Configure messaging to STDOUT, which is very verbose if INFO=True, else
@@ -105,6 +103,59 @@
105103
#"show-plot-of-input-obs": True,
106104
#"skip-all-plotting": False,
107105
}
106+
"""Configuration default values, applied if the user does not set otherwise.
107+
108+
This is a constant, in the form of a dictionary defining the configuration
109+
names as keys and their default values as the corresponding value for each.
110+
111+
**Output in pretty-printed format**
112+
113+
>>> from pprint import pprint
114+
>>> pprint(visiontoolkit.constants.CONFIG_DEFAULTS)
115+
{'cfp-cscale': 'plasma',
116+
'cfp-input-general-config': {'legend': True,
117+
'linewidth': 0.0,
118+
'markersize': 5,
119+
'title': 'Input: observational field (path, to '
120+
'be used for co-location, with its '
121+
'corresponding data, to be ignored)'},
122+
'cfp-input-levs-config': {},
123+
'cfp-input-track-only-config': {'colorbar': False,
124+
'legend': True,
125+
'linewidth': 0.0,
126+
'markersize': 0.5,
127+
'title': 'Input: flight track from '
128+
'observational field to co-locate '
129+
'model field onto'},
130+
'cfp-mapset-config': {},
131+
'cfp-output-general-config': {'legend': True,
132+
'linewidth': 0.0,
133+
'markersize': 5,
134+
'title': 'Result: model co-located onto '
135+
'observational path'},
136+
'cfp-output-levs-config': {},
137+
'chosen-model-field': False,
138+
'chosen-obs-field': False,
139+
'halo-size': 1,
140+
'history-message': 'Processed using the NCAS VISION Toolkit to co-locate from '
141+
'model data to the observational data spatio-temporal '
142+
'location.',
143+
'model-data-path': '.',
144+
'obs-data-path': '.',
145+
'orography': None,
146+
'output-file-name': 'vision_toolkit_result_field.nc',
147+
'outputs-dir': '.',
148+
'plot-mode': 0,
149+
'plotname-start': 'vision_toolkit',
150+
'preprocess-mode-model': None,
151+
'preprocess-mode-obs': None,
152+
'source-axes': False,
153+
'spatial-colocation-method': 'linear',
154+
'start-time-override': False,
155+
'verbose': 0,
156+
'vertical-colocation-coord': 'air_pressure'}
157+
158+
"""
108159

109160

110161
def toolkit_banner():

0 commit comments

Comments
 (0)