config_schema

petrophys.workflow.schema.config_schema

Also available as petrophys.workflow.config_schema

config_schema()[source]

Describe every DynamicWorkflowConfig setting.

Returns:

One entry per setting, in declaration order, with name, group (the section it belongs to, such as "Formation water"), type (as written in the source), default (JSON-serializable), description and, for settings with a fixed set of values, choices. Settings whose default (None) depends on calculation_profile also list profile_defaults, the value each profile uses; None there means the description’s rule applies.

Return type:

list of dict

Examples

>>> from petrophys.workflow.schema import config_schema
>>> rw = next(item for item in config_schema() if item["name"] == "rw")
>>> rw["description"].startswith("Formation water resistivity")
True