Skip to main content

Rust simulation core for Isobenefit Urbanism (arrays-in / arrays-out).

Project description

isobenefit

The Rust simulation core for the Isobenefit Urbanism QGIS plugin.

It is a pure compute engine: arrays in, arrays out. It never imports QGIS or performs any GIS IO — the plugin handles reading layers, reprojection, rasterization and writing rasters, then hands plain numpy arrays to this core.

Layout

  • src/neighbours.rs — neighbour iteration, contiguity counting, green-span checks
  • src/access.rs — heap-based bounded Dijkstra accessibility (parallel map-reduce)
  • src/density.rs — deterministic per-work-item RNG + density draws
  • src/sim.rs — the Simulation state machine and run_ensemble
  • src/lib.rs / src/py_bindings.rs — PyO3 bindings (built only with --features python)

Development

cargo test                 # pure-Rust algorithm tests (no Python needed)
maturin develop --release  # build + install the extension into the active venv
pytest tests_py            # Python-level golden + property tests

Parallelism (rayon) and determinism are first-class: results are independent of thread count. Reproducibility comes from per-work-item seeding (ChaCha8Rng derived from (seed, work_id)) and order-independent integer-sum reductions in the accessibility kernels.

Licensed under AGPL-3.0-or-later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isobenefit-0.10.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

isobenefit-0.10.0-cp39-abi3-win_amd64.whl (250.4 kB view details)

Uploaded CPython 3.9+Windows x86-64

isobenefit-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (372.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

isobenefit-0.10.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (658.5 kB view details)

Uploaded CPython 3.9+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file isobenefit-0.10.0.tar.gz.

File metadata

  • Download URL: isobenefit-0.10.0.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for isobenefit-0.10.0.tar.gz
Algorithm Hash digest
SHA256 2d90e05209553c5f14b46141a223e94f0a213d2f4b363fdbb6becb469b5f5c03
MD5 98c5b785505e887b59c351fe34995995
BLAKE2b-256 5eb06e9daa6e602e7139eb4976fa44d812edb0217950680053b69756eb061646

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.10.0.tar.gz:

Publisher: ci.yml on UCL/BSP-isobenefit-qgis-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file isobenefit-0.10.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: isobenefit-0.10.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 250.4 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for isobenefit-0.10.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 147624fab7ff64d3533b289d38e6deaa4d358bd007896c36350912afbce495fe
MD5 c801c147b1d780dba34d8414b042d20c
BLAKE2b-256 c191c00f0d9aa42f9d4cb20f59b126af22448ddcf0c00f8cd439312ba133896e

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.10.0-cp39-abi3-win_amd64.whl:

Publisher: ci.yml on UCL/BSP-isobenefit-qgis-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file isobenefit-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for isobenefit-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 776cd86f071b3322ead37707eee7a8e38f26daace09c353435e020755f183943
MD5 b7e29ec17eb123d42bf3d03124965c1a
BLAKE2b-256 8ba2e2d0c8cd2518687f3b206809d415811662dd359580289570709647b0e87a

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.10.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on UCL/BSP-isobenefit-qgis-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file isobenefit-0.10.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for isobenefit-0.10.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a5fd69975e4e8d1127bf4925ba3ddef92f103bf9fd68b9701b254726aaddda3c
MD5 b96c5856735517c9bac9e69dcd2c8588
BLAKE2b-256 b538ec0d99cddc7c93cd2b027590e4c5724aef0207f7a5b7b84e6a6227165b50

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.10.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: ci.yml on UCL/BSP-isobenefit-qgis-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page