Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dissmodel/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions docs/api/core.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/geo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion tests/raster/test_raster_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/raster/test_raster_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_env_now_accessible(self, backend_3x3):


# ══════════════════════════════════════════════════════════════════════════════
# Multiple models — salabim environment
# Multiple models — environment integration
# ══════════════════════════════════════════════════════════════════════════════

class TestEnvironmentIntegration:
Expand Down
4 changes: 2 additions & 2 deletions tests/vector/test_cellular_automaton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/vector/test_spatial_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_execute_uses_past_values(self, grid_3x3):


# ══════════════════════════════════════════════════════════════════════════════
# SpatialModel in salabim environment
# Environment integration
# ══════════════════════════════════════════════════════════════════════════════

class TestEnvironmentIntegration:
Expand Down
Loading