pint
pint copied to clipboard
Operate and manipulate physical quantities in Python
In the following, I would expect these to be equivalent: ```python from pint import UnitRegistry ureg = UnitRegistry() assert ureg.parse_units("(m) (s)**-1") == ureg.parse_units("m s**-1") ``` However, this fails, as ```python...
These are: - base unit, - delta, and - **magnitude.** Although Pint is fully capable of performing all 3 calculations, the [documentation](https://pint.readthedocs.io/en/latest/nonmult.html) only mentions the first two. A prime example...
In electrical engineering, quantities with logarithmic units such as dB and dBm are "summed" or "subtracted" although having different dimensionalities (which is forbidden for base units in pint). It would...
- Fix import time benchmark - [x] Closes #1542 - [ ] Executed ``pre-commit run --all-files`` with no errors - [ ] The change is fully covered by automated unit...
- [x] Closes #1553 - [ ] Executed ``pre-commit run --all-files`` with no errors - [ ] The change is fully covered by automated unit tests - [ ] Documented...
- (Not related to any known open issue) - [x] Executed ``pre-commit run --all-files`` with no errors - [x] The change is fully covered by automated unit tests - [...
I think we can add a warning when converting between ang freq and freq that links to the page in the docs. Angular freq and freq both have the same...
My Azure test pipelines have been failing during the pint module import. The exception is (example for Python 3.8 for output of one script, but it's the same message for...
I'm trying to write parameterized protocols for a biology lab using Pint. I'm trying to create a variable with "Cell Density" (e.g. 1.6e5 cells/mL). How can I create the "Cell"...
I'm seeing the following issue, where units are not parsed as expected: ```python import pint ureg = pint.UnitRegistry() fuel_usage_metric = 6.1 * ureg('l / 100km') fuel_usage_metric # 0.061 kilometer liter...