Simple-Minded Unit Propagation for QuantiPhy
============================================
| Author: Ken Kundert
| Version: 0.1
| Released: 2024-03-01
|
This is a package used to experiment with adding unit propagation to QuantiPhy_.
It currently employs simple-minded simplification rules that are relatively easy
to fool. Also, there is a strong emphasis on simple electrical unit scenarios.
Even so, it shows promise for use in well controlled settings.
Here is simple example::
from unit_propagation import (
UnitPropagatingQuantity as Quantity, QuantiPhyError
)
try:
v = Quantity("2.5V")
i = Quantity("100nA")
print(v/i)
except QuantiPhyError as e:
print(f"error: {e!s}")
Included in the package is a simple RPN calculator that allows you to explore
the capabilities and limitation of the *unit propagation*.
.. _QuantiPhy: https://quantiphy.readthedocs.io
Raw data
{
"_id": null,
"home_page": "",
"name": "unit-propagation",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "quantities,physical quantity,units,SI scale factors,engineering notation,mks,cgs",
"author": "Ken Kundert",
"author_email": "quantiphy@nurdletech.com",
"download_url": "https://files.pythonhosted.org/packages/92/e5/5587d458ba5baa9cc67175d9aef78a4dd0aabf8a8552c9ea22b41bb59f98/unit_propagation-0.1.tar.gz",
"platform": null,
"description": "Simple-Minded Unit Propagation for QuantiPhy\n============================================\n\n| Author: Ken Kundert\n| Version: 0.1\n| Released: 2024-03-01\n|\n\nThis is a package used to experiment with adding unit propagation to QuantiPhy_. \nIt currently employs simple-minded simplification rules that are relatively easy \nto fool. Also, there is a strong emphasis on simple electrical unit scenarios. \nEven so, it shows promise for use in well controlled settings.\n\nHere is simple example::\n\n from unit_propagation import (\n UnitPropagatingQuantity as Quantity, QuantiPhyError\n )\n try:\n v = Quantity(\"2.5V\")\n i = Quantity(\"100nA\")\n print(v/i)\n except QuantiPhyError as e:\n print(f\"error: {e!s}\")\n\nIncluded in the package is a simple RPN calculator that allows you to explore \nthe capabilities and limitation of the *unit propagation*.\n\n.. _QuantiPhy: https://quantiphy.readthedocs.io\n\n",
"bugtrack_url": null,
"license": "",
"summary": "physical quantities (numbers with units)",
"version": "0.1",
"project_urls": null,
"split_keywords": [
"quantities",
"physical quantity",
"units",
"si scale factors",
"engineering notation",
"mks",
"cgs"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7e8bc7fca9aeccfa0b7c1efd579c79f4afd077fec5d668a17d4b25d644d4e45d",
"md5": "3432a5857cac5fa2441c092b8b36e0fe",
"sha256": "5f5205517f4da2965daa3ac8c516df9c3d08f8a3719f48aa534388f75a5b5351"
},
"downloads": -1,
"filename": "unit_propagation-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3432a5857cac5fa2441c092b8b36e0fe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4858,
"upload_time": "2024-03-02T18:22:03",
"upload_time_iso_8601": "2024-03-02T18:22:03.215671Z",
"url": "https://files.pythonhosted.org/packages/7e/8b/c7fca9aeccfa0b7c1efd579c79f4afd077fec5d668a17d4b25d644d4e45d/unit_propagation-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "92e55587d458ba5baa9cc67175d9aef78a4dd0aabf8a8552c9ea22b41bb59f98",
"md5": "90cbd3076750005499b5592f00f3eca6",
"sha256": "4afbc44f2697fa411fcecaedd51a6070a2f0de080e8196a0f1159069ce8b01d3"
},
"downloads": -1,
"filename": "unit_propagation-0.1.tar.gz",
"has_sig": false,
"md5_digest": "90cbd3076750005499b5592f00f3eca6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4655,
"upload_time": "2024-03-02T18:22:05",
"upload_time_iso_8601": "2024-03-02T18:22:05.031650Z",
"url": "https://files.pythonhosted.org/packages/92/e5/5587d458ba5baa9cc67175d9aef78a4dd0aabf8a8552c9ea22b41bb59f98/unit_propagation-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-02 18:22:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "unit-propagation"
}