CollectionType#

class CollectionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: IntEnum

Parameter collection type.

Module: exa.common.data.parameter

Attributes

SCALAR

Scalar, not a list of any kind.

LIST

Python list.

NDARRAY

Numpy ndarray.

Methods

cast

Cast the given value to this collection type.

SCALAR = 0#

Scalar, not a list of any kind.

LIST = 1#

Python list.

NDARRAY = 2#

Numpy ndarray.

cast(value)#

Cast the given value to this collection type.

Parameters:

value (Any) –

Return type:

Any