Name | toddler JSON |
Version |
0.0.3
JSON |
| download |
home_page | None |
Summary | Tools and Operations for Data, Diagnostics, Light, and other Electromagnetic Radiation |
upload_time | 2024-08-12 11:53:10 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2018 Real Python 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 |
toddler
optical diagnostics
numpy
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<img src="https://github.com/mruijzendaal/toddler/blob/main/assets/hero_512x512.png?raw=true" width="256">
# Toddler: Tools and Operations for Diagnostics, Data, Light, and other Electromagnetic Radiation
_Starting physicists are often limited by their data processing abilities.
This library makes it so easy a toddler could do it._
<br />
## Installation
Install from [PyPI](https://pypi.org/project/toddler/) using PIP:
```
pip install toddler
```
Anaconda users should follow [this documentation](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#installing-non-conda-packages) and run `conda activate` and `conda install pip` before running the above `pip` command.
## Functionality
This module is split up into physics (e.g. conversion of units) and data processing (e.g. filtering images)
### Data
`toddler.data.spectrum.Spectrum` has the most utility of this library. It makes iterative processing on numpy arrays and its coordinates much simpler. The code below loads data of an optical spectrometer, applies some heavy processing, and plots the result. The equivalent code with out-of-the-box numpy would be much more convoluted.
```python
from toddler.data.spectrum import Spectrum
import matplotlib.pyplot as plt
s = Spectrum.from_file("some_file.csv")
s = s.median(axis=2)
.mean(axis=1)
.slice(lambda_start=534e-9, lambda_end=600e-9)
.filter("movmean", N=5)
.squeeze()
plt.figure()
plt.plot(s.lambdanm, s.data)
plt.show()
```
### Physics
`toddler.physics.const` constains all [scipy constants](https://docs.scipy.org/doc/scipy/reference/constants.html).
`toddler.physics.energy` contains utility functions related to energy (e.g. conversion from eV to J)
`toddler.physics.flow` contains utility functions related to flow (e.g. conversion from slm to mass flux)
`toddler.physics.kinetics` is an empty work-in-progress.
`toddler.physics.light` contains utility functions related to the intensity and unit of light (e.g. conversion from wavenumbers to wavelength)
`toddler.physics.thermodynamics` contains utilities for thermodynamic properties (e.g. pressure to gas density)
`toddler.physics.transport` is a work-in-progress.
## See also
For other tools for researchers and scientists, see
- [wedme](https://github.com/mruijzendaal/wedme-plots): Journal-quality stylesheets for papers, posters and presentations
- [pypdfplot](https://github.com/dcmvdbekerom/pypdfplot): Embedding in a figure its generating Pythons script.
Raw data
{
"_id": null,
"home_page": null,
"name": "toddler",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "toddler, optical diagnostics, numpy",
"author": null,
"author_email": "\"M.D. Ruijzendaal\" <martijn.ruijzendaal@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/9c/f7/d08b5ac5b882cdc0ba106632a103986aae235c5bf1b6cd7db91df89533bf/toddler-0.0.3.tar.gz",
"platform": null,
"description": "<img src=\"https://github.com/mruijzendaal/toddler/blob/main/assets/hero_512x512.png?raw=true\" width=\"256\">\n\n\n# Toddler: Tools and Operations for Diagnostics, Data, Light, and other Electromagnetic Radiation\n_Starting physicists are often limited by their data processing abilities.\nThis library makes it so easy a toddler could do it._\n\n<br />\n\n## Installation\nInstall from [PyPI](https://pypi.org/project/toddler/) using PIP:\n```\npip install toddler\n```\n\nAnaconda users should follow [this documentation](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#installing-non-conda-packages) and run `conda activate` and `conda install pip` before running the above `pip` command.\n\n## Functionality\nThis module is split up into physics (e.g. conversion of units) and data processing (e.g. filtering images)\n\n\n### Data\n`toddler.data.spectrum.Spectrum` has the most utility of this library. It makes iterative processing on numpy arrays and its coordinates much simpler. The code below loads data of an optical spectrometer, applies some heavy processing, and plots the result. The equivalent code with out-of-the-box numpy would be much more convoluted.\n\n```python\nfrom toddler.data.spectrum import Spectrum\nimport matplotlib.pyplot as plt \n\ns = Spectrum.from_file(\"some_file.csv\")\ns = s.median(axis=2)\n .mean(axis=1)\n .slice(lambda_start=534e-9, lambda_end=600e-9)\n .filter(\"movmean\", N=5)\n .squeeze()\n\nplt.figure()\nplt.plot(s.lambdanm, s.data)\nplt.show()\n```\n\n### Physics\n`toddler.physics.const` constains all [scipy constants](https://docs.scipy.org/doc/scipy/reference/constants.html). \n\n`toddler.physics.energy` contains utility functions related to energy (e.g. conversion from eV to J)\n\n`toddler.physics.flow` contains utility functions related to flow (e.g. conversion from slm to mass flux)\n\n`toddler.physics.kinetics` is an empty work-in-progress.\n\n`toddler.physics.light` contains utility functions related to the intensity and unit of light (e.g. conversion from wavenumbers to wavelength)\n\n`toddler.physics.thermodynamics` contains utilities for thermodynamic properties (e.g. pressure to gas density)\n\n`toddler.physics.transport` is a work-in-progress.\n\n\n## See also\nFor other tools for researchers and scientists, see\n- [wedme](https://github.com/mruijzendaal/wedme-plots): Journal-quality stylesheets for papers, posters and presentations\n- [pypdfplot](https://github.com/dcmvdbekerom/pypdfplot): Embedding in a figure its generating Pythons script.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2018 Real Python 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": "Tools and Operations for Data, Diagnostics, Light, and other Electromagnetic Radiation",
"version": "0.0.3",
"project_urls": {
"Bug Reports": "https://github.com/mruijzendaal/toddler/issues",
"Homepage": "https://github.com/mruijzendaal/toddler",
"Source": "https://github.com/mruijzendaal/toddler/"
},
"split_keywords": [
"toddler",
" optical diagnostics",
" numpy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9cf7d08b5ac5b882cdc0ba106632a103986aae235c5bf1b6cd7db91df89533bf",
"md5": "be7a76084e7b7fd91d24ddba12249c50",
"sha256": "1228e98415d37ce04de05d0c1e941f2f1be25d2f31572bd8f4c5aab4234e99d4"
},
"downloads": -1,
"filename": "toddler-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "be7a76084e7b7fd91d24ddba12249c50",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 19785,
"upload_time": "2024-08-12T11:53:10",
"upload_time_iso_8601": "2024-08-12T11:53:10.639876Z",
"url": "https://files.pythonhosted.org/packages/9c/f7/d08b5ac5b882cdc0ba106632a103986aae235c5bf1b6cd7db91df89533bf/toddler-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-12 11:53:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mruijzendaal",
"github_project": "toddler",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "toddler"
}