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:

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

Uploaded CPython 3.14Windows x86-64

dprs-0.1.21-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.21-cp314-cp314-macosx_11_0_arm64.whl (372.0 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dprs-0.1.21-cp313-cp313-win_amd64.whl (243.1 kB view details)

Uploaded CPython 3.13Windows x86-64

dprs-0.1.21-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (418.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

dprs-0.1.21-cp313-cp313-macosx_11_0_arm64.whl (372.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

dprs-0.1.21-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (418.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dprs-0.1.21-cp312-cp312-macosx_11_0_arm64.whl (372.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: dprs-0.1.21.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.21.tar.gz
Algorithm Hash digest
SHA256 d3c62d7dafe313702e972dbc14a26b9c58128d22b858b23d99d355bba559cbd7
MD5 9049871c2f0b348768e0d734f51b8549
BLAKE2b-256 32afe8a1e43bc1f6ed72b88fd437ff83e12166f2ee9790b4367301dad07a0306

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-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.21-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f8c835f3547228dae0c81e298911ad9dc18bce5b78544f79a835d9988a6cbf38
MD5 3ec34553b32119f38ee35cf650a7f4c6
BLAKE2b-256 0f8961ba0ce769a29e5d5d68843096ce76e5077872060b5f78fe26e9f76a2bc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-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.21-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 38e66c25b0855b406aa3ea943a5577775b389c0f0e18782c2afe0637e666e3e9
MD5 3049e5903d91f596424b36e3052939fa
BLAKE2b-256 b2b079cb18d4d383c52386c818ffd5b25864fc878c750764dcc3bb2712f3ada1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.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.21-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f28f21a01ce260f10833754af9dcd139f052c7943643046cb57285b6ef241769
MD5 27ab4b0247da29c6c1ec67cc910a3c96
BLAKE2b-256 7ca791903f4857f2ffea658965fd83a64910f2cd0440d3430a1f79ac662891bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 243.1 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.21-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 21ee8c8d5d64ef574e1596fceffe5999816b4faeb6e9e8ba4a15e7cc7aa6ad77
MD5 b1d451d7f2a05a8d404b8c26c4b32d18
BLAKE2b-256 ec803fd99c54e7c1c20c864956084a54f132176771f863ea52703e957da3b50e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 418.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.21-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de1b472c2259dca5d28c059ceb2ead5384763200ee056d7a5f2680eb846a9aff
MD5 76856524a24c317f54c282fb3f20df60
BLAKE2b-256 e34f83bc7211fd17254cf26caf4693198dd22bfb7022ad75f8823a4c62d85e1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.0 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.21-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 343d13293a1bab385320fef57f01fff19ae1e7400f489844db5bb78a9fd8c746
MD5 c6ed7760c58ae0aa3041a88e2493e559
BLAKE2b-256 e6d0e090618e0b62683ac522431b37b115a150f239f8aee13ebee4f922975ac1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-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.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 50bd1e962af1c4d316225790b2320943b9a9d80f1ba532c2ee9595d23dbe938b
MD5 09165bf31c943e7f790e983570862de0
BLAKE2b-256 1e3be63a7f379bb012a7adf9741218a22cd05572571b41418ca9f95e1d41bdf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 418.2 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.21-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59940e6727ae079f9af2e2c317881228cd57ef1d5440b08ac6991737c77e726e
MD5 9487a4c76fb66e4b4b7dc1054f70b487
BLAKE2b-256 0b0bd06d6fe8b5e7fa240444c88798745c6e6c406eeb330fc19fdc4d0c294f18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.21-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.6 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.21-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51cf3f0fc6ea5f15062b04284f03f344893cf86dd08634f01896c1776503a7e3
MD5 659d99afb30deb9e551aae09b8fc0843
BLAKE2b-256 f53df22a0304982004900962270aaa04a37a474bfeaa1b6d2c127a418ecfe073

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