osmose.engine.config

EngineConfig: typed parameter extraction from flat OSMOSE config dicts.

Converts the flat string key-value config (as read by OsmoseConfigReader) into typed NumPy arrays indexed by species, ready for vectorized computation.

Functions

detect_fishing_scenario(config, species_idx)

Detect fishing scenario for a species from config keys.

Classes

EngineConfig(n_species, n_dt_per_year, ...)

Typed engine configuration extracted from a flat OSMOSE config dict.

MPAZone(grid, start_year, end_year, percentage)

A Marine Protected Area definition.