DynamicSpace.parameters#

property DynamicSpace.parameters#

Tuple of parameter names for this space, or None if not parameterized.

Returns the parameter names defined for this space. When parameters are defined, the space becomes parameterized and can create ItemSpace instances by calling the space with arguments.

Returns:

Parameter names, or None if no parameters defined

Return type:

tuple of str or None

Example

>>> space.parameters
None

>>> space.parameters = ('x', 'y')
>>> space.parameters
('x', 'y')

>>> # Now the space can create ItemSpaces
>>> space[1, 2]
<ItemSpace Model1.Space1[1, 2]>

See also

  • formula: The formula that defines parameter behavior

  • has_params(): Check if parameters are defined

  • itemspaces: Mapping of created ItemSpace instances

Note

For UserSpace, parameters can be set directly. For DynamicSpace and ItemSpace, this reflects the parameters of the base space.