Name | analphipy JSON |
Version |
0.3.0
JSON |
| download |
home_page | |
Summary | Utilities to perform stat mech analysis of pair potentials |
upload_time | 2023-08-04 17:56:34 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | NIST-PD |
keywords |
analphipy
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<!-- markdownlint-disable MD041 -->
[![Repo][repo-badge]][repo-link] [![Docs][docs-badge]][docs-link]
[![PyPI license][license-badge]][license-link]
[![PyPI version][pypi-badge]][pypi-link]
[![Conda (channel only)][conda-badge]][conda-link]
[![Code style: black][black-badge]][black-link]
<!-- For more badges, see
https://shields.io/category/other
https://naereen.github.io/badges/
[pypi-badge]: https://badge.fury.io/py/analphipy
-->
[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
[black-link]: https://github.com/psf/black
[pypi-badge]: https://img.shields.io/pypi/v/analphipy
[pypi-link]: https://pypi.org/project/analphipy
[docs-badge]: https://img.shields.io/badge/docs-sphinx-informational
[docs-link]: https://pages.nist.gov/analphipy/
[repo-badge]: https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff
[repo-link]: https://github.com/usnistgov/analphipy
[conda-badge]: https://img.shields.io/conda/v/conda-forge/analphipy
[conda-link]: https://anaconda.org/conda-forge/analphipy
[license-badge]: https://img.shields.io/pypi/l/cmomy?color=informational
[license-link]: https://github.com/usnistgov/analphipy/blob/main/LICENSE
<!-- other links -->
[jensen-shannon]:
https://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence
[noro-frenkel]:
https://en.wikipedia.org/wiki/Noro%E2%80%93Frenkel_law_of_corresponding_states
# `analphipy`
Utilities to perform metric analysis on fluid pair potentials. The main features
of `analphipy` as follows:
## Overview
`analphipy` is a python package to calculate metrics for classical models for
pair potentials. It provides a simple and extendable api for pair potentials
creation. Several routines to calculate metrics are included in the package.
## Features
- Pre-defined spherically symmetric potentials
- Simple interface to extended to user defined pair potentials
- Routines to calculate [Noro-Frenkel] effective parameters.
- Routines to calculate [Jensen-Shannon] divergence
## Status
This package is actively used by the author. Please feel free to create a pull
request for wanted features and suggestions!
## Quick start
Use one of the following to install `analphipy`
```bash
pip install analphipy
```
or
```bash
conda install -c conda-forge analphipy
```
## Example usage
```pycon
# Create a Lennard-Jones potential
>>> import analphipy
>>> p = analphipy.potential.LennardJones(sig=1.0, eps=1.0)
# Get a Noro-Frenekl analysis object
>>> n = p.to_nf()
# Get effective parameters at inverse temperature beta
>>> n.sig(beta=1.0)
1.01560...
>>> n.eps(beta=1.0)
-1.0
>>> n.lam(beta=1.0)
1.44097...
```
<!-- end-docs -->
## Documentation
See the [documentation][docs-link] for a look at `analphipy` in action.
## License
This is free software. See [LICENSE][license-link].
## Contact
The author can be reached at <wpk@nist.gov>.
## Credits
This package was created with [Cookiecutter] and the
[wpk-nist-gov/cookiecutter-pypackage] Project template forked from
[audreyr/cookiecutter-pypackage].
[audreyr/cookiecutter-pypackage]:
https://github.com/audreyr/cookiecutter-pypackage
[cookiecutter]: https://github.com/audreyr/cookiecutter
[wpk-nist-gov/cookiecutter-pypackage]:
https://github.com/wpk-nist-gov/cookiecutter-pypackage
## TODO
- [ ] remove `# type: ignore` from potentials.py, base_potentials.py
- [ ] add back `check_untyped_defs` to pyproject.toml mypy config
- [ ] remove use of `custom_inherit`
<!-- markdownlint-disable MD024 -->
# Changelog
Changelog for `analphipy`
## Unreleased
See the fragment files in [changelog.d](https://github.com/usnistgov/analphipy)
<!-- scriv-insert-here -->
## v0.3.0 — 2023-08-04
### Added
- Package now available on conda-forge
### Changed
- Added better support for mypy/pyright type checking.
## v0.2.0 — 2023-05-04
### Removed
- Removed `cached_decorator` module.
- Removed `docfiller` module.
### Added
- Now use [module-utilities](https://pypi.org/project/module-utilities/) to
handle caching and docfilling.
## v0.1.0 — 2023-04-24
### Changed
- Update package layout
- New linters via pre-commit
- Development env now handled by tox
## v0.0.6 - 2023-03-22
Full set of changes:
[`v0.0.5...v0.0.6`](https://github.com/usnistgov/analphipy/compare/v0.0.5...v0.0.6)
## v0.0.5 - 2023-03-22
Full set of changes:
[`v0.0.4...v0.0.5`](https://github.com/usnistgov/analphipy/compare/v0.0.4...v0.0.5)
## v0.0.4 - 2022-09-27
Full set of changes:
[`v0.0.3...v0.0.4`](https://github.com/usnistgov/analphipy/compare/v0.0.3...v0.0.4)
## v0.0.3 - 2022-09-26
Full set of changes:
[`v0.0.2...v0.0.3`](https://github.com/usnistgov/analphipy/compare/v0.0.2...v0.0.3)
## v0.0.2 - 2022-09-26
Full set of changes:
[`v0.0.1...v0.0.2`](https://github.com/usnistgov/analphipy/compare/v0.0.1...v0.0.2)
## v0.0.1 - 2022-09-26
This software was developed by employees of the National Institute of Standards
and Technology (NIST), an agency of the Federal Government. Pursuant to title 17
United States Code Section 105, works of NIST employees are not subject to
copyright protection in the United States and are considered to be in the public
domain. Permission to freely use, copy, modify, and distribute this software and
its documentation without fee is hereby granted, provided that this notice and
disclaimer of warranty appears in all copies.
THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER
EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY
THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM
INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE
SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT
SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT,
INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR
IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY,
CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR
PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT
OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.
Distributions of NIST software should also include copyright and licensing
statements of any third-party software that are legally bundled with the code in
compliance with the conditions of those licenses.
Raw data
{
"_id": null,
"home_page": "",
"name": "analphipy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "analphipy",
"author": "",
"author_email": "\"William P. Krekelberg\" <wpk@nist.gov>",
"download_url": "https://files.pythonhosted.org/packages/37/79/ab531da14e1bf1e1d8b6daaa51db1dcb620d699dcd2cea5728d80ffea32e/analphipy-0.3.0.tar.gz",
"platform": null,
"description": "<!-- markdownlint-disable MD041 -->\n\n[![Repo][repo-badge]][repo-link] [![Docs][docs-badge]][docs-link]\n[![PyPI license][license-badge]][license-link]\n[![PyPI version][pypi-badge]][pypi-link]\n[![Conda (channel only)][conda-badge]][conda-link]\n[![Code style: black][black-badge]][black-link]\n\n<!-- For more badges, see\n https://shields.io/category/other\n https://naereen.github.io/badges/\n [pypi-badge]: https://badge.fury.io/py/analphipy\n-->\n\n[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg\n[black-link]: https://github.com/psf/black\n[pypi-badge]: https://img.shields.io/pypi/v/analphipy\n[pypi-link]: https://pypi.org/project/analphipy\n[docs-badge]: https://img.shields.io/badge/docs-sphinx-informational\n[docs-link]: https://pages.nist.gov/analphipy/\n[repo-badge]: https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff\n[repo-link]: https://github.com/usnistgov/analphipy\n[conda-badge]: https://img.shields.io/conda/v/conda-forge/analphipy\n[conda-link]: https://anaconda.org/conda-forge/analphipy\n[license-badge]: https://img.shields.io/pypi/l/cmomy?color=informational\n[license-link]: https://github.com/usnistgov/analphipy/blob/main/LICENSE\n\n<!-- other links -->\n\n[jensen-shannon]:\n https://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence\n[noro-frenkel]:\n https://en.wikipedia.org/wiki/Noro%E2%80%93Frenkel_law_of_corresponding_states\n\n# `analphipy`\n\nUtilities to perform metric analysis on fluid pair potentials. The main features\nof `analphipy` as follows:\n\n## Overview\n\n`analphipy` is a python package to calculate metrics for classical models for\npair potentials. It provides a simple and extendable api for pair potentials\ncreation. Several routines to calculate metrics are included in the package.\n\n## Features\n\n- Pre-defined spherically symmetric potentials\n- Simple interface to extended to user defined pair potentials\n- Routines to calculate [Noro-Frenkel] effective parameters.\n- Routines to calculate [Jensen-Shannon] divergence\n\n## Status\n\nThis package is actively used by the author. Please feel free to create a pull\nrequest for wanted features and suggestions!\n\n## Quick start\n\nUse one of the following to install `analphipy`\n\n```bash\npip install analphipy\n```\n\nor\n\n```bash\nconda install -c conda-forge analphipy\n```\n\n## Example usage\n\n```pycon\n# Create a Lennard-Jones potential\n>>> import analphipy\n>>> p = analphipy.potential.LennardJones(sig=1.0, eps=1.0)\n\n# Get a Noro-Frenekl analysis object\n>>> n = p.to_nf()\n\n# Get effective parameters at inverse temperature beta\n>>> n.sig(beta=1.0)\n1.01560...\n\n>>> n.eps(beta=1.0)\n-1.0\n\n>>> n.lam(beta=1.0)\n1.44097...\n\n```\n\n<!-- end-docs -->\n\n## Documentation\n\nSee the [documentation][docs-link] for a look at `analphipy` in action.\n\n## License\n\nThis is free software. See [LICENSE][license-link].\n\n## Contact\n\nThe author can be reached at <wpk@nist.gov>.\n\n## Credits\n\nThis package was created with [Cookiecutter] and the\n[wpk-nist-gov/cookiecutter-pypackage] Project template forked from\n[audreyr/cookiecutter-pypackage].\n\n[audreyr/cookiecutter-pypackage]:\n https://github.com/audreyr/cookiecutter-pypackage\n[cookiecutter]: https://github.com/audreyr/cookiecutter\n[wpk-nist-gov/cookiecutter-pypackage]:\n https://github.com/wpk-nist-gov/cookiecutter-pypackage\n\n## TODO\n\n- [ ] remove `# type: ignore` from potentials.py, base_potentials.py\n- [ ] add back `check_untyped_defs` to pyproject.toml mypy config\n- [ ] remove use of `custom_inherit`\n\n<!-- markdownlint-disable MD024 -->\n\n# Changelog\n\nChangelog for `analphipy`\n\n## Unreleased\n\nSee the fragment files in [changelog.d](https://github.com/usnistgov/analphipy)\n\n<!-- scriv-insert-here -->\n\n## v0.3.0 \u2014 2023-08-04\n\n### Added\n\n- Package now available on conda-forge\n\n### Changed\n\n- Added better support for mypy/pyright type checking.\n\n## v0.2.0 \u2014 2023-05-04\n\n### Removed\n\n- Removed `cached_decorator` module.\n- Removed `docfiller` module.\n\n### Added\n\n- Now use [module-utilities](https://pypi.org/project/module-utilities/) to\n handle caching and docfilling.\n\n## v0.1.0 \u2014 2023-04-24\n\n### Changed\n\n- Update package layout\n- New linters via pre-commit\n- Development env now handled by tox\n\n## v0.0.6 - 2023-03-22\n\nFull set of changes:\n[`v0.0.5...v0.0.6`](https://github.com/usnistgov/analphipy/compare/v0.0.5...v0.0.6)\n\n## v0.0.5 - 2023-03-22\n\nFull set of changes:\n[`v0.0.4...v0.0.5`](https://github.com/usnistgov/analphipy/compare/v0.0.4...v0.0.5)\n\n## v0.0.4 - 2022-09-27\n\nFull set of changes:\n[`v0.0.3...v0.0.4`](https://github.com/usnistgov/analphipy/compare/v0.0.3...v0.0.4)\n\n## v0.0.3 - 2022-09-26\n\nFull set of changes:\n[`v0.0.2...v0.0.3`](https://github.com/usnistgov/analphipy/compare/v0.0.2...v0.0.3)\n\n## v0.0.2 - 2022-09-26\n\nFull set of changes:\n[`v0.0.1...v0.0.2`](https://github.com/usnistgov/analphipy/compare/v0.0.1...v0.0.2)\n\n## v0.0.1 - 2022-09-26\n\nThis software was developed by employees of the National Institute of Standards\nand Technology (NIST), an agency of the Federal Government. Pursuant to title 17\nUnited States Code Section 105, works of NIST employees are not subject to\ncopyright protection in the United States and are considered to be in the public\ndomain. Permission to freely use, copy, modify, and distribute this software and\nits documentation without fee is hereby granted, provided that this notice and\ndisclaimer of warranty appears in all copies.\n\nTHE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER\nEXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY\nTHAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM\nINFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE\nSOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT\nSHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT,\nINDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR\nIN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY,\nCONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR\nPROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT\nOF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.\n\nDistributions of NIST software should also include copyright and licensing\nstatements of any third-party software that are legally bundled with the code in\ncompliance with the conditions of those licenses.\n",
"bugtrack_url": null,
"license": "NIST-PD",
"summary": "Utilities to perform stat mech analysis of pair potentials",
"version": "0.3.0",
"project_urls": {
"documentation": "https://pages.nist.gov/analphipy/",
"homepage": "https://github.com/usnistgov/analphipy"
},
"split_keywords": [
"analphipy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1867f992fe362d21ff8acfc121d7e9517eee6499177e2fe41d6b1b32343b008c",
"md5": "e87d3067e215062339c3f77d6fad27cb",
"sha256": "c23f3803ab27e353b6493d30c8a080fef0703f05552f035386aa3351bf330e61"
},
"downloads": -1,
"filename": "analphipy-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e87d3067e215062339c3f77d6fad27cb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 28039,
"upload_time": "2023-08-04T17:56:32",
"upload_time_iso_8601": "2023-08-04T17:56:32.427014Z",
"url": "https://files.pythonhosted.org/packages/18/67/f992fe362d21ff8acfc121d7e9517eee6499177e2fe41d6b1b32343b008c/analphipy-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3779ab531da14e1bf1e1d8b6daaa51db1dcb620d699dcd2cea5728d80ffea32e",
"md5": "861dbc6c039f87588a7496f7fe3e9890",
"sha256": "8e11391cf06d14c492cc2725c15a01e3b825623f19af611a26c66f58a968b3cd"
},
"downloads": -1,
"filename": "analphipy-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "861dbc6c039f87588a7496f7fe3e9890",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 325278,
"upload_time": "2023-08-04T17:56:34",
"upload_time_iso_8601": "2023-08-04T17:56:34.106432Z",
"url": "https://files.pythonhosted.org/packages/37/79/ab531da14e1bf1e1d8b6daaa51db1dcb620d699dcd2cea5728d80ffea32e/analphipy-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-04 17:56:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "usnistgov",
"github_project": "analphipy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "analphipy"
}