pawflim


Namepawflim JSON
Version 1.0.4 PyPI version JSON
download
home_page
SummaryDenoising via adaptive binning for FLIM datasets.
upload_time2023-11-30 16:14:00
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) 2023 Mauro Silberberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords flim pawflim binlets denoising adaptive wavelets
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pawFLIM: denoising via adaptive binning for FLIM datasets

![PyPi](https://img.shields.io/pypi/pyversions/pawflim.svg)
[![PyPi](https://img.shields.io/pypi/v/pawflim.svg)](https://pypi.python.org/pypi/pawflim)
[![License](https://img.shields.io/github/license/maurosilber/smo)](https://opensource.org/licenses/MIT)
[![Paper](https://img.shields.io/badge/DOI-10.1088%2F2050--6120%2Faa72ab-green)](https://doi.org/10.1088/2050-6120/aa72ab)

## Installation

pawFLIM can be installed from PyPI:

```
pip install pawflim
```

## Usage

```python
import numpy as np
from pawflim import pawflim

data = np.empty((3, *shape), dtype=complex)
data[0] = ...  # number of photons
data[1] = ...  # n-th (conjugated) Fourier coefficient
data[2] = ...  # 2n-th (conjugated) Fourier coefficient

denoised = pawflim(data, n_sigmas=2)

phasor = denoised[1] / denoised[0]
```

Note that we use the standard FLIM definition for the $n$-th phasor $r$:

$$ r_n = \\frac{R_n}{R_0} $$

where

$$ R_n = \\int I(t) , e^{i n \\omega t} dt $$

is the $n$-th (conjugated) Fourier coefficient.

See the notebook in
[examples](https://github.com/maurosilber/pawflim/blob/main/examples/simulated_data.ipynb)
for an example with simulated data.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pawflim",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "FLIM,pawFLIM,binlets,denoising,adaptive,wavelets",
    "author": "",
    "author_email": "Mauro Silberberg <maurosilber@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/19/b5/9d0e0e0a3db4db143292b8fdb2a235fa13bd52f023e0c3a8b0aac7b3df18/pawflim-1.0.4.tar.gz",
    "platform": null,
    "description": "# pawFLIM: denoising via adaptive binning for FLIM datasets\n\n![PyPi](https://img.shields.io/pypi/pyversions/pawflim.svg)\n[![PyPi](https://img.shields.io/pypi/v/pawflim.svg)](https://pypi.python.org/pypi/pawflim)\n[![License](https://img.shields.io/github/license/maurosilber/smo)](https://opensource.org/licenses/MIT)\n[![Paper](https://img.shields.io/badge/DOI-10.1088%2F2050--6120%2Faa72ab-green)](https://doi.org/10.1088/2050-6120/aa72ab)\n\n## Installation\n\npawFLIM can be installed from PyPI:\n\n```\npip install pawflim\n```\n\n## Usage\n\n```python\nimport numpy as np\nfrom pawflim import pawflim\n\ndata = np.empty((3, *shape), dtype=complex)\ndata[0] = ...  # number of photons\ndata[1] = ...  # n-th (conjugated) Fourier coefficient\ndata[2] = ...  # 2n-th (conjugated) Fourier coefficient\n\ndenoised = pawflim(data, n_sigmas=2)\n\nphasor = denoised[1] / denoised[0]\n```\n\nNote that we use the standard FLIM definition for the $n$-th phasor $r$:\n\n$$ r_n = \\\\frac{R_n}{R_0} $$\n\nwhere\n\n$$ R_n = \\\\int I(t) , e^{i n \\\\omega t} dt $$\n\nis the $n$-th (conjugated) Fourier coefficient.\n\nSee the notebook in\n[examples](https://github.com/maurosilber/pawflim/blob/main/examples/simulated_data.ipynb)\nfor an example with simulated data.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Mauro Silberberg  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Denoising via adaptive binning for FLIM datasets.",
    "version": "1.0.4",
    "project_urls": {
        "Bug Tracker": "https://github.com/maurosilber/pawflim/issues",
        "Homepage": "https://github.com/maurosilber/pawflim"
    },
    "split_keywords": [
        "flim",
        "pawflim",
        "binlets",
        "denoising",
        "adaptive",
        "wavelets"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6cffb4efa15272f8fd6163a132cfb8117496a58173b7a337a8322c942f035008",
                "md5": "e4be96e440d4b17f8c85753e3b3daa7e",
                "sha256": "24448dca75ed395cfb33f9a10ebe07423439590395d56f933137296eacf890a6"
            },
            "downloads": -1,
            "filename": "pawflim-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e4be96e440d4b17f8c85753e3b3daa7e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5463,
            "upload_time": "2023-11-30T16:13:59",
            "upload_time_iso_8601": "2023-11-30T16:13:59.320087Z",
            "url": "https://files.pythonhosted.org/packages/6c/ff/b4efa15272f8fd6163a132cfb8117496a58173b7a337a8322c942f035008/pawflim-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19b59d0e0e0a3db4db143292b8fdb2a235fa13bd52f023e0c3a8b0aac7b3df18",
                "md5": "19e11cd1b29fc3df6b630fa84182bc48",
                "sha256": "cf02d1ce185fedf9c15be669e693389b68a4dd576769fd47cda2288465085154"
            },
            "downloads": -1,
            "filename": "pawflim-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "19e11cd1b29fc3df6b630fa84182bc48",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 121664,
            "upload_time": "2023-11-30T16:14:00",
            "upload_time_iso_8601": "2023-11-30T16:14:00.979872Z",
            "url": "https://files.pythonhosted.org/packages/19/b5/9d0e0e0a3db4db143292b8fdb2a235fa13bd52f023e0c3a8b0aac7b3df18/pawflim-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-30 16:14:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "maurosilber",
    "github_project": "pawflim",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "pawflim"
}
        
Elapsed time: 0.14379s