diff --git a/dissmodel/core/model.py b/dissmodel/core/model.py index 8d0e62b..1eda0f3 100644 --- a/dissmodel/core/model.py +++ b/dissmodel/core/model.py @@ -86,8 +86,7 @@ def setup(self, **kwargs: Any) -> None: arguments not consumed by ``__init__``. Override in subclasses to perform one-time setup such as building - neighborhoods or initializing visualization state. Mirrors the - salabim ``Component.setup()`` contract. + neighborhoods or initializing visualization state. """ pass diff --git a/docs/api/core.md b/docs/api/core.md index 9dc57e5..a9cb7ea 100644 --- a/docs/api/core.md +++ b/docs/api/core.md @@ -1,7 +1,6 @@ # Core -The `dissmodel.core` module provides the simulation clock and execution lifecycle, -built on top of [Salabim](https://www.salabim.org/)'s discrete event engine. +The `dissmodel.core` module provides the simulation clock and execution lifecycle. All models and visualization components must be instantiated **after** the `Environment` — they register themselves automatically on creation. diff --git a/docs/api/geo/index.md b/docs/api/geo/index.md index 2657b52..0332743 100644 --- a/docs/api/geo/index.md +++ b/docs/api/geo/index.md @@ -16,7 +16,7 @@ from dissmodel.geo.raster.raster_grid import raster_grid ## Dual-substrate design The module provides two independent spatial substrates. Both share the same -salabim `Environment` and clock — a vector model and a raster model can run +`Environment` and clock — a vector model and a raster model can run side by side in the same `env.run()`. | | Vector | Raster | diff --git a/docs/index.md b/docs/index.md index 91afadd..7ddbd1b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,7 +5,7 @@ DisSModel is a modular, production-ready Python framework for spatially explicit dynamic modeling. Developed by the [LambdaGeo](https://github.com/DisSModel) group at the Federal University of Maranhão (UFMA), it provides a unified environment for building **Cellular Automata (CA)** and **System Dynamics (SysDyn)** models. -Inspired by the [TerraME](http://www.terrame.org/) framework, DisSModel brings the same modeling expressiveness to Python — replacing the TerraLib/Lua stack with GeoPandas, NumPy, and Salabim, while remaining fully interoperable with the broader Python data science ecosystem. +Inspired by the [TerraME](http://www.terrame.org/) framework, DisSModel brings the same modeling expressiveness to Python — replacing the TerraLib/Lua stack with GeoPandas and NumPy, while remaining fully interoperable with the broader Python data science ecosystem. ```bash pip install dissmodel @@ -19,7 +19,7 @@ DisSModel is organized into five core modules designed for reproducibility and s | Module | Description | |:---|:---| -| `dissmodel.core` | Simulation clock and execution lifecycle powered by [Salabim](https://www.salabim.org/). | +| `dissmodel.core` | Simulation clock and execution lifecycle. | | `dissmodel.geo` | Spatial substrates — Dual-design (Vector + Raster) for flexible modeling. | | `dissmodel.executor` | **(New)** Standardized execution layer for CLI and Remote Workers. | | `dissmodel.io` | **(New)** Storage-agnostic I/O handling local files and MinIO/S3. | diff --git a/tests/raster/test_raster_map.py b/tests/raster/test_raster_map.py index e8120ef..500f100 100644 --- a/tests/raster/test_raster_map.py +++ b/tests/raster/test_raster_map.py @@ -3,7 +3,7 @@ ================================= Tests for RasterMap — raster visualization component. -RasterMap is a salabim Component that renders at each step. +RasterMap renders at each step. Tests cover: instantiation, mode detection (categorical/continuous), headless rendering (no display required), and environment integration. """ diff --git a/tests/raster/test_raster_model.py b/tests/raster/test_raster_model.py index 7798966..ae3e5f7 100644 --- a/tests/raster/test_raster_model.py +++ b/tests/raster/test_raster_model.py @@ -119,7 +119,7 @@ def test_env_now_accessible(self, backend_3x3): # ══════════════════════════════════════════════════════════════════════════════ -# Multiple models — salabim environment +# Multiple models — environment integration # ══════════════════════════════════════════════════════════════════════════════ class TestEnvironmentIntegration: diff --git a/tests/vector/test_cellular_automaton.py b/tests/vector/test_cellular_automaton.py index f382df0..f04eb32 100644 --- a/tests/vector/test_cellular_automaton.py +++ b/tests/vector/test_cellular_automaton.py @@ -41,8 +41,8 @@ def default_env(): """ Create a default Environment for every test. - Required by salabim — any Model instantiation fails without an active - Environment. Tests that need a different end_time create their own + An active environment must exist before instantiating any Model. + Tests that need a different end_time create their own Environment locally, which replaces this default. """ return Environment(start_time=1, end_time=1) diff --git a/tests/vector/test_spatial_model.py b/tests/vector/test_spatial_model.py index 54f3d18..4aee477 100644 --- a/tests/vector/test_spatial_model.py +++ b/tests/vector/test_spatial_model.py @@ -221,7 +221,7 @@ def test_execute_uses_past_values(self, grid_3x3): # ══════════════════════════════════════════════════════════════════════════════ -# SpatialModel in salabim environment +# Environment integration # ══════════════════════════════════════════════════════════════════════════════ class TestEnvironmentIntegration: