Skip to content

ParameterBag

Parameter flat key-value store for use with a container.

Allows storing and retrieving of parameters in the bag. Templated strings can be used to interpolate a string referencing parameters.

Functions

__init__(values=None)

Initialize an empty ParameterBag.

ParameterBag holds a flat key-value store of parameter values. __bag: A dictionary to store parameter values. __cache: A cache for interpolated values.

get(param)

Get the value of a parameter.

If the parameter is templated, interpolate it first by replacing placeholders with parameter values.

Parameters:

Name Type Description Default
param ParameterReference

The parameter to retrieve.

required

Returns:

Type Description
Any

The parameter's value.