cape.pylava.options.util: Utilities for pyLava options module

This module provides tools to read, access, modify, and write settings for cape.pylava. 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.

In addition, this module controls default values of each pyLava parameter in a three-step process. The precedence used to determine what the value of a given parameter should be is below.

  1. Values directly specified in the input file, pyLava.json

  2. Values specified in the default control file, $PYLAVA/settings/pyLava.default.json

  3. Hard-coded defaults from this module

See Also:
cape.pylava.options.util.getPyLavaDefaults()

Read pyLava.default.json default JSON file

Call:
>>> defs = getPyLavaDefaults()
Outputs:
defs: dict

Dictionary of settings read from JSON file

Versions:
  • 2024-08-05 @sneuhoff: Version 1.0