enp.dtypes.Casting

enp.dtypes.Casting#

class etils.enp.array_types.dtypes.Casting(value)[source]

Bases: etils.epy.py_utils.StrEnum

Casting mode when converting to array.

ALL

Allow all casting (e.g. float-> int)

NONE

No casting allowed for existing ndarray. Array-like built-ins (list, int,…) are casted to the given dtype.

ALL = 'all'
NONE = 'none'