osmose.engine.state

SchoolState: Structure-of-Arrays representation of all fish schools.

All school data is stored in flat NumPy arrays for vectorized operations. This replaces Java’s per-object School instances with cache-friendly columnar storage.

Classes

MortalityCause(*values)

Mortality cause indices for the n_dead tracking array.

SchoolState(species_id, is_background, ...)

Structure-of-Arrays state for all fish schools.