enp.dtypes.Casting#
- class etils.enp.array_types.dtypes.Casting(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[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'#