DynamicSpace.has_params#
- DynamicSpace.has_params()#
Check whether this space has parameters defined.
Returns
Trueif the space has a parameter formula defined, meaning it can createItemSpaceinstances when accessed with arguments. ReturnsFalseotherwise.- Returns:
True if parameters are defined, False otherwise
- Return type:
Example
>>> space.has_params() False >>> space.parameters = ('x', 'y') >>> space.has_params() True >>> # Can now create ItemSpaces >>> if space.has_params(): ... item = space[1, 2]
See also
parameters: Get the parameter namesformula: The underlying formula objectitemspaces: Mapping of created ItemSpace instances