first-passage-percolation-sim


Namefirst-passage-percolation-sim JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummarySimulations of the first passage percolation on the square lattice
upload_time2024-09-13 12:25:20
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseNone
keywords first-passage-percolation graph-theory percolation probability simulation square-lattice
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # first passage percolation

This package provides simulation tools for first passage percolation on the square lattice. See the [`example.ipynb`](example.ipynb) file for the usage of the package.

## Simple example

```python
import first_passage_percolation_sim as fpp
from scipy.stats import geom

(fpp.FirstPassagePercolation(size=201, dist=geom(0.5))
    .compute_lengths()
    .plot_heatmap(cmap="inferno")
)
```

<p align="center">
<img src="doc/assets/heatmap_geom_0_5.png" alt="drawing" width="400"/>
</p>

## Installation

```console
pip install first-passage-percolation-sim
```

## TODO's

- [ ] Testings

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "first-passage-percolation-sim",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "first-passage-percolation, graph-theory, percolation, probability, simulation, square-lattice",
    "author": null,
    "author_email": "arnaud-ma <arnaudma.code@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/53/b0/ba448da4875f7f41844d48484c5a00dfb172d7a4cfbb8cbc32c7cc480358/first_passage_percolation_sim-0.1.4.tar.gz",
    "platform": null,
    "description": "# first passage percolation\n\nThis package provides simulation tools for first passage percolation on the square lattice. See the [`example.ipynb`](example.ipynb) file for the usage of the package.\n\n## Simple example\n\n```python\nimport first_passage_percolation_sim as fpp\nfrom scipy.stats import geom\n\n(fpp.FirstPassagePercolation(size=201, dist=geom(0.5))\n    .compute_lengths()\n    .plot_heatmap(cmap=\"inferno\")\n)\n```\n\n<p align=\"center\">\n<img src=\"doc/assets/heatmap_geom_0_5.png\" alt=\"drawing\" width=\"400\"/>\n</p>\n\n## Installation\n\n```console\npip install first-passage-percolation-sim\n```\n\n## TODO's\n\n- [ ] Testings\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simulations of the first passage percolation on the square lattice",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://github.com/arnaud-ma/first-passage-percolation#readme",
        "Issues": "https://github.com/arnaud-ma/first-passage-percolation/issues",
        "Source": "https://github.com/arnaud-ma/first-passage-percolation"
    },
    "split_keywords": [
        "first-passage-percolation",
        " graph-theory",
        " percolation",
        " probability",
        " simulation",
        " square-lattice"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "47b48b19aa6304a67a42acaab42afb51a371cc7b347d4e632193dc09498b10fd",
                "md5": "ff329decddf22a1676251a00f7d14cad",
                "sha256": "af50e8de6deac2b97fe22bcb58b2ed320cc16d0e6e873b1aaf506d7ac741346c"
            },
            "downloads": -1,
            "filename": "first_passage_percolation_sim-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff329decddf22a1676251a00f7d14cad",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 8453,
            "upload_time": "2024-09-13T12:25:19",
            "upload_time_iso_8601": "2024-09-13T12:25:19.412031Z",
            "url": "https://files.pythonhosted.org/packages/47/b4/8b19aa6304a67a42acaab42afb51a371cc7b347d4e632193dc09498b10fd/first_passage_percolation_sim-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53b0ba448da4875f7f41844d48484c5a00dfb172d7a4cfbb8cbc32c7cc480358",
                "md5": "3929be0d8113ef05c370b215d25e4eb6",
                "sha256": "5822f21e7c0b809706b2ed4f5082fccebf36928c29d6947872bb2fce619e8329"
            },
            "downloads": -1,
            "filename": "first_passage_percolation_sim-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "3929be0d8113ef05c370b215d25e4eb6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 870429,
            "upload_time": "2024-09-13T12:25:20",
            "upload_time_iso_8601": "2024-09-13T12:25:20.898222Z",
            "url": "https://files.pythonhosted.org/packages/53/b0/ba448da4875f7f41844d48484c5a00dfb172d7a4cfbb8cbc32c7cc480358/first_passage_percolation_sim-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-13 12:25:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "arnaud-ma",
    "github_project": "first-passage-percolation#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "first-passage-percolation-sim"
}
        
Elapsed time: 0.52771s