Skip to content

DataContainer

packingcubes.data_objects.DataContainer

DataContainer(positions, index, box)

Jitclass for particle position information

This class is intended for use in jitted Numba code and is effectively a view on a Dataset's postion and index data.

See Also

Dataset, Dataset.data_container

bounding_box property

bounding_box

Return the BoundingBox of the DataContainer

index property

index

Return the shuffle list, creating if necessary

positions property

positions

Return the particle position data

__len__

__len__()

Return the number of particles in the DataContainer