Fixed issue where performing an operation of a Quantity with certain units would perform an in-place
unit conversion that modified the operand in addition to the returned value (Issues #1102 & #1144)
Implements Logarithmic Units like dBm, dB or decade
(Issue #71, Thanks Dima Pustakhod, Clark Willison, Giorgio Signorello, Steven Casagrande, Jonathan Wheeler)
Drop dependency on setuptools pkg_resources to read package resources, using std lib importlib.resources instead.
(Issue #1080)
0.15 (2020-08-22)
Change Quantity and Unit HTML (i.e., Jupyter notebook) repr away from LaTeX to a
simpler, more performant pretty-text and table based repr inspired by Sparse and Dask.
(Issue #654)
Add case_sensitive option to registry for case (in)sensitive handling when parsing
units (Issue #1145)
Implement Dask collection interface to support Pint Quantity wrapped Dask arrays.
Started automatically testing examples in the documentation
Fixed an exception generated when reducing dimensions with three or more
units of the same type
Fixed right operand power for dimensionless Quantity to reflect numpy behavior. (Issue #1136)
Eliminated warning when setting a masked value on an underlying MaskedArray.
Add sort option to formatting.formatter to permit disabling sorting of component units in format string
Implements Logarithmic Units like dBm, dB or decade
(Issue #71, Thanks Dima Pustakhod, Giorgio Signorello, Jonathan Wheeler)
0.14 (2020-07-01)
Changes required to support Pint-Pandas 0.1.
0.13 (2020-06-17)
Reinstated support for pickle protocol 0 and 1, which is required by pytables
(Issue #1036, Thanks Guido Imperiale)
Fixed bug with multiplication of Quantity by dict (Issue #1032)
Bare zeros and NaNs (not wrapped by Quantity) are now gracefully accepted by all numpy
operations; e.g. np.stack([Quantity([1, 2], "m"), [0, np.nan]) is now valid, whereas
np.stack([Quantity([1, 2], "m"), [3, 4]) will continue raising DimensionalityError.
(Issue #1050, Thanks Guido Imperiale)
NaN is now treated the same as zero in addition, subtraction, equality, and
disequality (Issue #1051, Thanks Guido Imperiale)
Fixed issue where quantities with a very large magnitude would throw an IndexError
when using to_compact()
Fixed crash when a Unit with prefix is declared for the first time while a Context
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps pint from 0.9 to 0.16.
Changelog
Sourced from pint's changelog.
Commits
9a05e60
Preparing release 0.161fb19df
Updated MANIFEST.in849ce83
Merge #11702510d5b
Pin black to ==19.10b0 as 20.8b1 is failing1af9bdf
Lintersf7e9d25
Enforce pandas>=1.0.4 in requirements_docsbb99b3c
Updated docs python to python 3.8faac139
Fix the docs7ba6290
Add pip-wheel-metadata/Pint.dist-info/AUTHORS to gitignore5d4e915
Merge #1157Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)