sgpykit.util.struct_array

Functions

get_shape_of_cells(objects)

Get the shape of the first Cell object in the list of objects.

Classes

Cell(shape[, dtype])

A 1D or 2D container class that extends Python's built-in list.

Struct(**kwargs)

A simple struct-like class that allows attribute access and dictionary-like item access.

StructArray(*args, **kwargs)

class sgpykit.util.struct_array.StructArray(*args, **kwargs)[source]

Bases: object

Methods

isequal_to(obj2)

Check if two StructArrays are equal.

isequal_to(obj2)[source]

Check if two StructArrays are equal.

Parameters:
obj2StructArray

StructArray to compare with.

Returns:
bool

True if equal, False otherwise.