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.

Demos

For now, only a simplified form of Domany-Kinzel has been implemented. A series of related models are in development.

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

Domany-Kinzel

Simplified DP-class Domany-Kinzel model simulations are demonstrated in the following Jupyter notebooks:

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.20.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.20-cp314-cp314-win_amd64.whl (242.3 kB view details)

Uploaded CPython 3.14Windows x86-64

dprs-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (417.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dprs-0.1.20-cp314-cp314-macosx_11_0_arm64.whl (371.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

dprs-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (418.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

dprs-0.1.20-cp312-cp312-win_amd64.whl (243.4 kB view details)

Uploaded CPython 3.12Windows x86-64

dprs-0.1.20-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.20-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.20.tar.gz.

File metadata

  • Download URL: dprs-0.1.20.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.20.tar.gz
Algorithm Hash digest
SHA256 7efeb1c8dbb06a98aadbb24bdcfd1bea08fdd27d50f522d8d25d3d22328fc5ed
MD5 a18a3a087478262563bbd5e8ef0de003
BLAKE2b-256 7095d5986d5f7a34398bc1798fd2aa71226e89fd46818755dcfbaee73da3b184

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 242.3 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.20-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a4e02ee6374dd266a21b643bd7a2709540d8eeeff777a054718790be864b18b6
MD5 e5f067be0e42c5dd58adf10227313116
BLAKE2b-256 e49424813651f2792565abff43e9e2403fd1d7ea46c0a3b0383152dc38bb970d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 417.9 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.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54743f3fa0f3de697d20f33b41782bb5acc93a257e8ab5f029819db35c76cd08
MD5 37549ea93d3d9fce3509e4dcdd36f69e
BLAKE2b-256 63b31e1405ec81a4b178e3aec5e1d8e920734c706f193955218e96b2d3d77134

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 371.9 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.20-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c56653d7e0e287e5ab38eb6918006bbcbfd8dc36a09057aedd714710ae19f266
MD5 06cbdea459f00dfd115008c62e840ac5
BLAKE2b-256 92680bd22592e448cdeccf96b97568f99b366cdd6cf28b50995b69dc1b17f82d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-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.20-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f72a8828d55a659c1d94f3fcc82d830fd271366110a2ca876866f0001eaefe0e
MD5 54e7b3b318e35ea40f64239f804c9d5c
BLAKE2b-256 d701ba725cad7a8c81e53d9683402089aa1f3115d7709a1e45ea4b1a6ab8ea30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 418.1 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.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3623679e54bdb0ebe114c02a300716c76d7cda8c806376dffaca302ad02475a
MD5 a188766e9f38e05c9cfcba4d281e90ba
BLAKE2b-256 bc77e1f73a01ff98fb2fe5224d8e90258bef60262fe139c75407ef847e116f2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-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.20-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46888304a98ea9dd6a29b12ab86bcbea9113dc604b4cba5132eef99504ee2731
MD5 40ee79eca5f6b88e91d584826a37fe77
BLAKE2b-256 4bee9a539f713e7506496813ee15cc53e6ba2d53930848215f2d4aca81909ca2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 243.4 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.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dc24ada2e1ee492cb40fc525b6d3a1a3db26032315cf8500e1dd33ac6b56e819
MD5 3d7a5a248cc6ad7c6f4859e7291d9307
BLAKE2b-256 e85781e55ab8cb8a5f3267dc0d8a2fdca86bf468ec24b18b3bcf3a83f6ceebf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-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.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 29f6efbd8630f5f46f3228e46c0fbb418efef137fceda14a6d959d9da29f3e94
MD5 692cbd2acd440334e9a9fffe2336417e
BLAKE2b-256 af0f0a7142662a04215bce1822f43075fb4223168f6734295c3f71170dab921c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.20-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.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2a35d60c62a110be80ca1fda90823a664a4b18bb24fc0882e79160d1fd24e8e
MD5 cbc8d618618f6158edfe0e7556774302
BLAKE2b-256 a569f9c9f0985fd17f42d3c1eeb0bf81b2cf11d731b22c89f58a4783cb334470

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