array_like

class misalign.canvas.canvas_rectangular.array_like(*args, **kwargs)

Type hinting utility class for representing objects compatible with numpy.asarray and with .shape property.

MISImages are array_like.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

Attributes

shape

Get the shape of the array.

__array__() ndarray

Get array.

Returns:
arraynp.ndarray

Numpy array.

property shape: tuple[int, ...]

Get the shape of the array.

Returns:
shapetuple[int]

Tuple of ints describing the shape in numpy order - row, col, depth - (1200,1600,3).