Table Of Contents
Table Of Contents

ParameterDict.get_constant

ParameterDict.get_constant(name, value=None)[source]

Retrieves a Constant with name self.prefix+name. If not found, get() will first try to retrieve it from “shared” dict. If still not found, get() will create a new Constant with key-word arguments and insert it to self.

Parameters:
  • name (str) – Name of the desired Constant. It will be prepended with this dictionary’s prefix.
  • value (array-like) – Initial value of constant.
Returns:

The created or retrieved Constant.

Return type:

Constant