cape.pyover.options.util: Utilities for pyOver options module¶
This module provides tools to read, access, modify, and write settings for
cape.pyover. It is based off of the cape.cfdx.options.util module and
provides a special class cape.cfdx.options.odict that is subclassed from
the Python built-in dict. Behavior, such as opts['OverNamelist']
or opts.get('OverNamelist') are also present. In addition, many convenience
methods such as opts.get_OverNamelist() are provided.
In addition, this module controls default values of each pyOver parameter in a three-step process. The precedence used to determine what the value of a given parameter should be is below.
Values directly specified in the input file,
pyOver.jsonValues specified in the default control file,
$PYOVER/settings/pyOver.default.jsonHard-coded defaults from this module
- See Also:
- cape.pyover.options.util.getPyOverDefaults()¶
Read
pyOver.default.jsondefault settings file- Call:
>>> defs = getPyOverDefaults()
- Outputs:
- defs:
dict Dictionary of settings read from JSON file
- defs:
- Versions:
2015-12-29
@ddalle: Version 1.0 (OVERFLOW version)2021-03-01
@ddalle: Version 2.0; local settings