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.24.tar.gz (3.0 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.24-cp314-cp314-win_amd64.whl (244.1 kB view details)

Uploaded CPython 3.14Windows x86-64

dprs-0.1.24-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (420.5 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dprs-0.1.24-cp314-cp314-macosx_11_0_arm64.whl (373.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dprs-0.1.24-cp313-cp313-win_amd64.whl (244.9 kB view details)

Uploaded CPython 3.13Windows x86-64

dprs-0.1.24-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (421.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

dprs-0.1.24-cp313-cp313-macosx_11_0_arm64.whl (371.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dprs-0.1.24-cp312-cp312-win_amd64.whl (245.3 kB view details)

Uploaded CPython 3.12Windows x86-64

dprs-0.1.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (421.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dprs-0.1.24-cp312-cp312-macosx_11_0_arm64.whl (372.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: dprs-0.1.24.tar.gz
  • Upload date:
  • Size: 3.0 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.24.tar.gz
Algorithm Hash digest
SHA256 d010c291bc67196ffa3894d0617375dd837d577a65a4ea35d52f0577b2a08844
MD5 3c0add985da62a4cb1d039d479060d3e
BLAKE2b-256 322e5be3a787167a730e37bf416f7d1e63a9bf53d95ac48dff61a7c0ffef7455

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 244.1 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.24-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5605734366282e25168fae0e56a86bb1fa7510b7f1f8d6ec029afb81c66fcbab
MD5 c21c8431d989215a374ccb5262a9afd2
BLAKE2b-256 62df1ad8d48b8d43c46ddadd39ea5c26c15117c23e11123bcc45eb04b2792de5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 420.5 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.24-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7e040e66ae37e3fcb71d3ffd75ba4bfb88d935cc017fa5b391acb96a6401edba
MD5 9570948ad2efae1ae03901316f8ae08e
BLAKE2b-256 864302f13959662a8979bed20a65da53fcb7b24328cb81ec1df6dce648b82c02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 373.0 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.24-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52774fce4e6f7c99107cfa1aa4c4eee4cb1e8656cd87804a9602ef60f2b9d3b7
MD5 7fccc34ed594f3c1f114bcc31ec3251e
BLAKE2b-256 83f06bbc78408a8c1f1e1fcf7ea002e772bb5de126bb6409c7a5ddf001b1b17f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 244.9 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.24-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 748a9f1e2b82581f2ed16705a85833447115a8d12dcb5d1be0ec0fb033a8e21c
MD5 69f3f2e03ff95278c18fbb1d7115fd4e
BLAKE2b-256 83508fca572fc7a01b1ccc899f18c36099d922b750ed1aa3ae63eaaba87827bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 421.2 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.24-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9609fb63671c0e4c94d0f723bb301b77d84ba9d4da4aaa18bf49fb3e4e40588f
MD5 2a07beb1f72bf5b1c10284e6bdec5c5f
BLAKE2b-256 289721402130af94b4c690e61bc63844496f679051f0ca9829fccd8a849eb9ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 371.3 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.24-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3523043f08c85f39f1b77b0b2db9b42886d099921bd1ed2200655a02a96eb0c2
MD5 de263cd12946b580ffe3ed8b0cf9dcf5
BLAKE2b-256 e3d131f2fea4208c1001429ede945417541e22323e47e1e579c0453c8a6e07bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 245.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.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f48fdedcbf93ea8eccc59775082213669aaba08ec8538860df8f522d2ee9eeae
MD5 b3a1cb8fbc521a2b59b12e77203f5064
BLAKE2b-256 1d295af8a4c35592a21c079f8b9c2f59943fd421da96a9ff336fbe0726b12a1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 421.3 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.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 894882b8ddeef989b1aa760b4d2bac549fe5267187ed561cac598beb2a38d187
MD5 92856e8354f0b143d8a3b7d78bd67e22
BLAKE2b-256 c0da24a23c165dd75bc38ebfa009c30c4cd2f23addd5e7e385f68b6300618174

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.24-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.0 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.24-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db5468304134bb1d762ddf8e3c61764c3cde121991731210195ae955aa158e6d
MD5 0d22c8685da879fa8e314d2cbab29a70
BLAKE2b-256 245eb637b6b6c386fdabfc52dd451c182471a593a9b63f5c0847e6c9826d7058

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