first-passage-percolation-sim


Namefirst-passage-percolation-sim JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummarySimulations of the first passage percolation on the square lattice
upload_time2024-05-09 20:47:17
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/21/59/4e267f61b63522f95a46ce35c8a4d04036c73cb8563fd5962c2fe92bd93b/first_passage_percolation_sim-0.1.3.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.3",
    "project_urls": {
        "Documentation": "https://github.com/unknown/first-passage-percolation#readme",
        "Issues": "https://github.com/unknown/first-passage-percolation/issues",
        "Source": "https://github.com/unknown/first-passage-percolation"
    },
    "split_keywords": [
        "first-passage-percolation",
        " graph-theory",
        " percolation",
        " probability",
        " simulation",
        " square-lattice"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0b51126518829e1eb89bb7042828f9e4fb669589ee8b790d975df86cb732bc1c",
                "md5": "fc6ea92aad5d21e3c3d17316887c8ec4",
                "sha256": "b4e1bbcd79b4f4e29a6c51a43c4d7bf7073520a5e7b93b07fbb6f43c9709cd07"
            },
            "downloads": -1,
            "filename": "first_passage_percolation_sim-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fc6ea92aad5d21e3c3d17316887c8ec4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 8457,
            "upload_time": "2024-05-09T20:47:15",
            "upload_time_iso_8601": "2024-05-09T20:47:15.310181Z",
            "url": "https://files.pythonhosted.org/packages/0b/51/126518829e1eb89bb7042828f9e4fb669589ee8b790d975df86cb732bc1c/first_passage_percolation_sim-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21594e267f61b63522f95a46ce35c8a4d04036c73cb8563fd5962c2fe92bd93b",
                "md5": "93787f090e7a38da0328bded890fcfed",
                "sha256": "55522d74817b294df28c46838899d8482bcef6e60ce6915383b88247f976042b"
            },
            "downloads": -1,
            "filename": "first_passage_percolation_sim-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "93787f090e7a38da0328bded890fcfed",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 870434,
            "upload_time": "2024-05-09T20:47:17",
            "upload_time_iso_8601": "2024-05-09T20:47:17.532608Z",
            "url": "https://files.pythonhosted.org/packages/21/59/4e267f61b63522f95a46ce35c8a4d04036c73cb8563fd5962c2fe92bd93b/first_passage_percolation_sim-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-09 20:47:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "unknown",
    "github_project": "first-passage-percolation#readme",
    "github_not_found": true,
    "lcname": "first-passage-percolation-sim"
}
        
Elapsed time: 0.22891s