babycat.NumPyNamedResult

class NumPyNamedResult

Bases: object

A container for decoding operations that may have succeeded or failed.

NumPyNamedResult contains either a numpy.ndarray from a successful audio decoding or a Python exception from a failed audio decoding.

__new__(**kwargs)
__repr__()

Return repr(self).

array

A numpy.ndarray if decoding succeeded… or None if decoding failed.

exception

None if decoding succeeded… or an exception if decoding failed.

name

The “name” of a result as a str, typically a filename for an audio file.