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

Uploaded CPython 3.14Windows x86-64

dprs-0.1.23-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (420.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

dprs-0.1.23-cp314-cp314-macosx_11_0_arm64.whl (372.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

dprs-0.1.23-cp313-cp313-win_amd64.whl (244.5 kB view details)

Uploaded CPython 3.13Windows x86-64

dprs-0.1.23-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.23-cp313-cp313-macosx_11_0_arm64.whl (372.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dprs-0.1.23-cp312-cp312-win_amd64.whl (245.0 kB view details)

Uploaded CPython 3.12Windows x86-64

dprs-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (421.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

dprs-0.1.23-cp312-cp312-macosx_11_0_arm64.whl (373.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: dprs-0.1.23.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.23.tar.gz
Algorithm Hash digest
SHA256 0dfde673178f684059aa495eecb946a945d31ebf12a19837dfcee1a5a978b658
MD5 a24beb3fd56191f1e4705652a0829fe4
BLAKE2b-256 7d07c83b8aa351310a4c8ae2961784f39e92ff4bd612efc64f4f0ba867fbb85a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 244.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.23-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 89c7a635c761c53eb2c44ddcc47e059e401cb1611004007e4425ac84ffcaa75c
MD5 4aa50a429e4ca816ae3eee1453579fe9
BLAKE2b-256 06bf576d537f8c72e91ba9d556ce2a5a155792e8f748b0fa771f770cc3c15f98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 420.7 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.23-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ef5cdb378d57c67d855a0145d4fe32a6a928a9f30b186f57417790bb2f63f99
MD5 018fc086629a7a5baa411266c6efc721
BLAKE2b-256 3c42609bd6eecc67608459228345ee771b31d38f44e4cd8530008b267fd8d537

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.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.23-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16f564775cf9ff5b13573988203343bc719f07701789ccddc1c3f74cdffb352c
MD5 44cca69cc01b34686213e8c283ea7c7c
BLAKE2b-256 1ca8ecc0b458bfd7b59340ecf037bfd24ea3f0d7c77b1c14fdf18c69d91dfccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 244.5 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.23-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a38fa66c1833a339553ddb3d57f08425c111505853581f900bc138551ae004bd
MD5 5af0768f90241fe43743c08efaa2d438
BLAKE2b-256 58ef0956aeeb80a35ea2c96164b05a388af473551bbf785bd46fe454da2f9b21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-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.23-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c26aaf7be7a32aa45f109c54deac40730bca763f8e77235045a975cdca5fff43
MD5 7fb5a77ce3b8658b38c0ad47c81b5347
BLAKE2b-256 c02fde2b9cf73d5d92ffe71e0cdb935bf80b4bb0b15ddfbfa8c205749a79b956

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 372.7 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.23-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2418e45cc1c5c2d364a41280d08859afffd0c6b67698e31f387634b3f0462ad7
MD5 b053d70bce6f406b5da3c296a860818f
BLAKE2b-256 f2d247ed62fc564cb913fef14c49c4e4022fefa4c977d27bed7a28c1fd8f0213

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 245.0 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.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ab7e09023b2112a684d9bb2febd40c10ee70a4a218c2c97ff754233edd8237d
MD5 918a38fd52179e6e371c12bc8d9b201a
BLAKE2b-256 c2c76ba2672c38500ca3d5988987529e5cea6b22c97f86efe301fec4a2ab48bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 421.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.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6d2c5692052b0298d25fe922f77d819112cb5849c412c99d62f2f83e7c633d9
MD5 2e33084bac0babdd7f5f7feb8277200a
BLAKE2b-256 624f1ef2c6b6b754659ee6358e824ad4fcb8da45ad5e57f5654d08b2cf079a63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dprs-0.1.23-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 373.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.23-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cd119d8ac44f5a7f677cf939ca800da185c6958ead1917b62c4e25ec56e27a5
MD5 5e75dfd6f6db1e9fbe679d66dc14c9e4
BLAKE2b-256 59e78ed797e323ea1bf1c173649f2686c36883788f370ceed71201f7767e2670

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