osmose.engine

Python OSMOSE simulation engine.

Classes

PythonEngine([backend])

Vectorized in-process OSMOSE simulation engine.

Exceptions

SimulationCancelled

Raised when a simulation is cancelled cooperatively (C4).

Modules

accessibility

Stage-indexed accessibility matrix for predation.

background

Background species support for the OSMOSE Python engine.

config

EngineConfig: typed parameter extraction from flat OSMOSE config dicts.

config_validation

Unknown-key validation for OSMOSE EngineConfig.from_dict().

economics

DSVM fleet dynamics bioeconomic module.

genetics

Ev-OSMOSE eco-evolutionary genetics module.

grid

Grid: spatial grid representation for the engine simulation.

incoming_flux

Incoming flux: external biomass injection from CSV time-series.

initialization

Warm-start standing-stock initialization (opt-in, inert by default).

movement_maps

MovementMapSet: CSV spatial probability map loading and index_maps construction.

output

Output writer for the OSMOSE Python engine.

path_resolution

Consolidated file path resolution for OSMOSE data files.

physical_data

Generic NetCDF/constant physical data loader for temperature and oxygen forcing.

processes

OSMOSE simulation process functions.

resources

Resource species (LTL) for the OSMOSE Python engine.

rng

Per-species deterministic RNG factory.

rng_compat

Java-compatible Xorshift random number generator.

simulate

Main simulation loop for the Python OSMOSE engine.

state

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

timeseries

Time-series loading framework for OSMOSE engine parameters.