tiled.structures.array.Kind#

class tiled.structures.array.Kind(*values)[source]#

See https://numpy.org/devdocs/reference/arrays.interface.html#object.__array_interface__

The term “kind” comes from the numpy API as well.

Note: At import time, the environment variable TILED_ALLOW_OBJECT_ARRAYS is checked. If it is set to anything other than "0", then this Enum gets an additional member:

object = "O"

to support numpy ‘object’-type arrays which hold generic Python objects. Numpy ‘object’-type arrays are not enabled by default because their binary representation is not interpretable by clients other than Python. It is recommended to convert your data to a non-object type if possible so that it can be read by non-Python clients.

__init__(*args, **kwds)#

Methods

__new__(value)

__repr__()

Return repr(self).

__str__()

Return str(self).

__format__(format_spec)

Return a formatted version of the string as described by format_spec.

_missing_(key)

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Returns public methods and other interesting attributes.

__getstate__(/)

Helper for pickle.

__init__(*args, **kwds)

__init_subclass__

This method is called when a class is subclassed.

__reduce__(/)

Helper for pickle.

__reduce_ex__(proto)

Helper for pickle.

__setattr__(name, value, /)

Implement setattr(self, name, value).

__subclasshook__

Abstract classes can override this to customize issubclass().

Attributes

__doc__

bit_field

boolean

integer

unsigned_integer

floating_point

complex_floating_point

timedelta

datetime

string

unicode

other

__members__

__module__

__name__

__qualname__