Wave#
- class Wave(input_array, name: Optional[str] = None, output: Optional[OutputType] = None)[source]#
Bases:
ndarray
Numpy array subclass containing additional waveform metadata.
This class takes a standard ndarray that already exists, casts as Wave type, and adds the following extra attributes/metadata: * name * output
The additional metadata is only used for the sequencer code generation.
(Based on https://numpy.org/doc/stable/user/basics.subclassing.html)
- Parameters:
input_array – existing ndarray
name (Optional[str]) – optional name of the waveform in the sequencer code snippet.
output (Optional[OutputType]) – optional output configuration for the waveform in the sequencer code snippet.
- Return type:
New in version 0.3.5.
Methods
Attributes