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.1.0.tar.gz (17.4 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.1.0-cp39-abi3-win_amd64.whl (224.5 kB view details)

Uploaded CPython 3.9+Windows x86-64

isobenefit-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (348.0 kB view details)

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

isobenefit-0.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (609.2 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.1.0.tar.gz.

File metadata

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

File hashes

Hashes for isobenefit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6beced02a3aa4d42ae6721e6a4ecf0a21dca88d17beca1f72d9e98e97c0cf1f
MD5 c2aa69d015cd8628f4e8c19f34bd46d0
BLAKE2b-256 75dc7825b78406913ad49e97fdd18e1e571fa1372faed89561e99ac06c241c43

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.1.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.1.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: isobenefit-0.1.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 224.5 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.1.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 710ee38918a126d68624673984357c32987ada93630dd1c325872dd9302c57d2
MD5 af8ad63f3992916e0b3d95376bd06209
BLAKE2b-256 f46995b03744fb427eec5d9571afbae3c6914e4ae7b4b90e11036e81dd031e0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.1.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.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for isobenefit-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a705a1c0f0b61f0609ee5fb19e88381c3c6cda6c01180a069dea335d1c65d1c9
MD5 2b604c0c520dec0a7b2ca03ced9d0e91
BLAKE2b-256 b2d2eca5959fda54ae3472061a9ea727663b392443406c47b06b8940640fd996

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.1.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.1.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.1.0-cp39-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 b879d125ab69acad08e43cae97360904f2029483fd480f1c6278e9669f700235
MD5 66959fed38856506c229f24b22eec7e6
BLAKE2b-256 b73865da2d3aa4f170523bd20cca931dd9061dc74ecd3d0a7aeb6e58ad7f7ee7

See more details on using hashes here.

Provenance

The following attestation bundles were made for isobenefit-0.1.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