edifice.extra.numpy_image.NumpyArray#

class edifice.extra.numpy_image.NumpyArray(np_array)[source]#

Bases: Generic[T_Numpy_Array_co]

Wrapper for one numpy.ndarray.

This wrapper class provides the __eq__ relation for the wrapped numpy array such that if two wrapped arrays are __eq__, then one can be substituted for the other. This class may be used as a prop or a state.

Parameters:

np_array (ndarray[Any, dtype[TypeVar(T_Numpy_Array_co, bound= generic, covariant=True)]]) –

A numpy.ndarray.

Methods

__init__(np_array)

Attributes

np_array