Skip to main content

Directed percolation-type models in Rust

Project description

Directed Percolation in Rust and Python

In this project, we implement directed percolation models in Rust. The Rust code is accessed via a Python wrapper to make experimentation as convenient as possible. Jupyter notebooks are used to implement the Python-wrapped simulations.

1d DP-class, simplified Domany-Kinzel evolution for p_c ~ p=0.53891, n_x=300, t=200

We have two motivations for adopting Rust: one is to ensure maximum performance; another is to achieve this in a memory-safe and bug-free fashion (which is not easy to do in C or C++). Fast run times are achieved through parallelization using the Rayon crate. We anticipate boosting performance further with GPU-compute using wgpu.

See here for some rough "how-to" notes on wrapping Rust with Python.

2d DP-class, simplified Domany-Kinzel t-decay of mean order parameter mean ρ(t), for p_c ~ p=0.163145, n_x=30000, n_y=30000, t=50000

Demos

Domany-Kinzel

Simplified DP-class Domany-Kinzel model simulations are demonstrated in the following Jupyter notebooks. The emphasis here is on checking the t-decay of mean ρ(t), which has well-established power-law tail-scaling behavior.

Related pure-Python demos can be found here:

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

dprs-0.1.22.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

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

dprs-0.1.22-cp314-cp314-win_amd64.whl (242.2 kB view details)

Uploaded CPython 3.14Windows x86-64

dprs-0.1.22-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (417.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dprs-0.1.22-cp314-cp314-macosx_11_0_arm64.whl (371.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dprs-0.1.22-cp313-cp313-win_amd64.whl (243.0 kB view details)

Uploaded CPython 3.13Windows x86-64

dprs-0.1.22-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (418.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

dprs-0.1.22-cp313-cp313-macosx_11_0_arm64.whl (371.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dprs-0.1.22-cp312-cp312-win_amd64.whl (243.3 kB view details)

Uploaded CPython 3.12Windows x86-64

dprs-0.1.22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (418.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dprs-0.1.22-cp312-cp312-macosx_11_0_arm64.whl (372.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file dprs-0.1.22.tar.gz.

File metadata

  • Download URL: dprs-0.1.22.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22.tar.gz
Algorithm Hash digest
SHA256 c205c104f67d42a7f6e39c063be12d3e7b722591f63e8e8e2d144d83b0c9c260
MD5 436de8e760165e909924c07e06d8a8d2
BLAKE2b-256 b8d5316a4fdc13bd5b199a0055d08d67786fc5a773e47213862efb0f40ef6a56

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 242.2 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b6b91e1376453dbe4ba2b76fac92042a54dcf0397cd7010aef490f7b5d6a58cc
MD5 b598fe0a0acb54c8534174bbd52ad0a2
BLAKE2b-256 48a24e66f59916fea26f0fb2507a7a0b0118a3e3b67ab3b1266274053cc82f0c

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 417.8 kB
  • Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a05792ecbff7128ecc75a2babab63329f86c93dbe1d0a0903e58d8fc1727f67c
MD5 45cf09570eb480097f43433c094a547d
BLAKE2b-256 81398a5ebc5d36dcd246bc88346fdf06b82c5859078f26e52933b1cfcc996d56

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 371.8 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51c261ddcc28462ef3dfde17c5a8f0cb9d8eaad6d28a2c00116f51688dfea7b9
MD5 0f04a7a70427e2a0ee4e6e99bb25977d
BLAKE2b-256 4e725c39dfae04cc82b0c81a7f372b88131b112ec1769ad40aca5d0d8100f27b

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 243.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c41f72ad6292c20ef67de4f19ded1bfa6c0ee0bf7174cd92987c6ece73bb64da
MD5 9fb15a4f2a354af4dfdd8a40a625f468
BLAKE2b-256 a5b49040174692838313458d9f7f48fd9e24ddb2da3d4dbb28c6b1d2e89fd272

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 418.0 kB
  • Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 282b6757aa3fc4fffca6d6dfa033c4640394ce19bccf2900513efcbc59171af7
MD5 c2d061e6eb3be48ee8373c244b83f771
BLAKE2b-256 0f513ba1518f3edbb5e6cf87a48708d1fa12f03ef2a80cf031117e6492d0afb7

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 371.9 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9c3c9af6cd5751abcab7b028dfc9b4967f10c170b6e4c3516e7076093072236
MD5 ce28ad2ea4c4e2883b378e7c16b3c2dc
BLAKE2b-256 0f2f7440680f9646bc261e44eec7b3f1b2db035cfd223d8c5c91ddd9b04df0a5

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 243.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 873dc9bf56e9dc87692ff49147b61e2e06307ce115dc2f200aec3385e288f891
MD5 4591e7cc71e296d231393e6adfee488b
BLAKE2b-256 b0bea7ed20b4a57d0e6e235d3857ed4013ed63cadbf8f609c7226c121fe33a48

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 418.1 kB
  • Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff2b2599ff7e431910050bf9be027a8149d4b92f081838ef3f8bc020a3ebdaf0
MD5 a375bb4586e9416f51e38f4ed7fd883f
BLAKE2b-256 75c864594a3f136840bbc56f01aae89a7b27dbc05fef05395a2d5941f0282ed1

See more details on using hashes here.

File details

Details for the file dprs-0.1.22-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: dprs-0.1.22-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.5 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dprs-0.1.22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac11f4c7fc9127abd75a7b6c4184cdf8e3109b66d5fa1896ef263e22fce79151
MD5 00775755a53c75b20b783095058dc45c
BLAKE2b-256 e00df72a377dba6b2ca18bdbc9b85dedfcc41451d3413c745bce994dcf16d485

See more details on using hashes here.

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