| 1 |
Pint Changelog |
| 2 |
============== |
| 3 |
|
| 4 |
0.26.0 (unreleased) |
| 5 |
------------------- |
| 6 |
|
| 7 |
- Nothing yet. |
| 8 |
|
| 9 |
0.25.3 (2026-03-19) |
| 10 |
----------------- |
| 11 |
|
| 12 |
- `GenericPlainRegistry.parse_expression` now correctly returns a dimensionless Quantity when taking a float, int, or NaN (#2259) |
| 13 |
- Replace MIP with scipy in `Quantity.to_preferred` (#2264) |
| 14 |
- New unit formatting modifier added (`^`) to format unit with negative exponents (#2256) |
| 15 |
- Add atomic unit of electric field gradient (`atomic_unit_of_electric_field_gradient`, `a_u_efg`) (#2269) |
| 16 |
- Defer expensive loading of dask.array (#2265) |
| 17 |
- Add support for numpy's `vdot`, `inner`, `outer`, `linalg.outer`, `matvec`, `vecmat`, `tensordot`, and `linalg.tensordot` (#2279) |
| 18 |
|
| 19 |
|
| 20 |
0.25.2 (2025-11-06) |
| 21 |
------------------- |
| 22 |
|
| 23 |
- Revert typing change in `pint.Unit` |
| 24 |
|
| 25 |
|
| 26 |
0.25.1 (2025-11-01) |
| 27 |
------------------- |
| 28 |
|
| 29 |
- Fix raising exception in `Quantity.from_tuple` with invalid units (#2199) |
| 30 |
- Several unit definition fixes. |
| 31 |
- Add devcontainer.json to add GitHub Codespace support (#2208) |
| 32 |
- Add support for `numpy.geomspace` (#2206) |
| 33 |
- Add support for `linalg.diagonal`, `linalg.matrix_transpose`, `diag`, `tril`, `triu`, `linalg.eigvals`, `linalg.eigvalsh`, `linalg.matrix_norm` and `linalg.vector_norm` (#2210) |
| 34 |
- An example of performing currency conversions that change over time has been added to the docs. (#2240) |
| 35 |
- Add support for `pint.Quantity` being used as Generic. (#2231) |
| 36 |
- Add a typing and IDE autocomplete page to the documentation. (#2243) |
| 37 |
- Fixed `nan`/`nan` to return `nan` rather than 1 in unit conversion (#2228) |
| 38 |
|
| 39 |
|
| 40 |
0.25.0 (2025-08-25) |
| 41 |
------------------- |
| 42 |
|
| 43 |
- Bump minimum Python version to 3.11. |
| 44 |
- Upgrade code to Python 3.11. |
| 45 |
- Move to pixi/uv/ruff. |
| 46 |
- Refactor compat to make it easier to test. |
| 47 |
- Implemented several pixi environment and tasks to simplify development. |
| 48 |
- Add docs to the functions in ``pint.testing`` (PR #2070) |
| 49 |
- Fix round function returning float instead of int (#2081) |
| 50 |
- Fix return type of `PlainQuantity.to` (#2088) |
| 51 |
- Update constants to CODATA 2022 recommended values. (#2049) |
| 52 |
- Fixed issue with `.to_compact` and Magnitudes with uncertainties / Quantities with units (PR #2069, issue #2044) |
| 53 |
- Fixed issue in unit conversion which led to loss of precision when using `decimal`. (#2107) |
| 54 |
- Add conductivity dimension. (#2112) |
| 55 |
- Add absorbance unit and dimension. (#2114) |
| 56 |
- Add membrane filtration flux and permeability dimensionality, and shorthand "LMH". (#2116) |
| 57 |
- Fix find_shortest_path to use breadth first search (#2146) |
| 58 |
- Fix typo in ``pyproject.toml``: rename ``AS_MIP`` to ``HAS_MIP`` so that MIP support is correctly detected. (#2152) |
| 59 |
- Fix handling of extra arguments in conversion with enabled contexts (#2172) |
| 60 |
- Fix swapped left and right arguments in interp (#2187) |
| 61 |
- Fix formatted scientific notation bug in Python 3.13 (#2168) |
| 62 |
- Fix ability to add dB units, and to add dB (dimensionless) to referenced dB units, such as dBm or dBW (#1160) |
| 63 |
- Improve pressure unit definitions in default definition file (#2186) |
| 64 |
- Avoid and document known issues with MIP during install, testing and runtime (#2188 and #2121) |
| 65 |
- Fix issue with Dask by restricting its version to < 2025.3.0 (#2188 and Dask #1016) |
| 66 |
- Skip false xfail tests linked to a known numpy issue (#2188 and #1776) |
| 67 |
- Improve `Contributing` documentation (#2188) |
| 68 |
- Add `Quantity.to_unprefixed` and `ito_unprefixed` methods that remove SI prefixes without converting to base units. (#2201) |
| 69 |
|
| 70 |
|
| 71 |
0.24.4 (2024-11-07) |
| 72 |
------------------- |
| 73 |
|
| 74 |
- add error for prefixed non multi units (#1998) |
| 75 |
- build: typing_extensions version |
| 76 |
- build: switch from appdirs to platformdirs |
| 77 |
- fix GenericPlainRegistry getattr type (#2045) |
| 78 |
- Replace references to the deprecated `UnitRegistry.default_format` (#2058) |
| 79 |
- fix: upgrade to flexparser>=0.4, exceptions are no longer dataclasses. |
| 80 |
(required for Python 3.13) |
| 81 |
|
| 82 |
|
| 83 |
0.24.2 (2024-07-28) |
| 84 |
------------------- |
| 85 |
|
| 86 |
- Fix the default behaviour for pint-convert (cli) for importing uncertainties package (PR #2032, Issue #2016) |
| 87 |
- Added mu and mc as alternatives for SI micro prefix |
| 88 |
- Added ℓ as alternative for liter |
| 89 |
- Support permille units and `‰` symbol (PR #2033, Issue #1963) |
| 90 |
- Switch from appdirs to platformdirs. |
| 91 |
- Fixes issues related to GenericPlainRegistry.__getattr__ type (PR #2038, Issues #1946 and #1804) |
| 92 |
- Removed deprecated references in documentation and tests (PR #2058, Issue #2057) |
| 93 |
|
| 94 |
|
| 95 |
0.24.1 (2024-06-24) |
| 96 |
------------------- |
| 97 |
|
| 98 |
- Fix custom formatter needing the registry object. (PR #2011) |
| 99 |
- Support python 3.9 following difficulties installing with NumPy 2. (PR #2019) |
| 100 |
- Fix default formatting of dimensionless unit issue. (PR #2012) |
| 101 |
- Fix bug preventing custom formatters with modifiers working. (PR #2021) |
| 102 |
|
| 103 |
|
| 104 |
0.24 (2024-06-07) |
| 105 |
----------------- |
| 106 |
|
| 107 |
- Fix detection of invalid conversion between offset and delta units. (PR #1905) |
| 108 |
- Added dBW, decibel Watts, which is used in RF high power applications |
| 109 |
- NumPy 2.0 support |
| 110 |
(PR #1985, #1971) |
| 111 |
- Implement numpy roll (Related to issue #981) |
| 112 |
- Implement numpy correlate |
| 113 |
(PR #1990) |
| 114 |
- Add `dim_sort` function to _formatter_helpers. |
| 115 |
- Add `dim_order` and `default_sort_func` properties to FullFormatter. |
| 116 |
(PR #1926, fixes Issue #1841) |
| 117 |
- Minimum version requirement added for typing_extensions>=4.0.0. |
| 118 |
(PR #1996) |
| 119 |
- Documented packages using pint. |
| 120 |
(PR #1960) |
| 121 |
- Fixed bug causing operations between arrays of quantity scalars and quantity holding |
| 122 |
array resulting in incorrect units. |
| 123 |
(PR #1677) |
| 124 |
- Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal. |
| 125 |
(PR #1977) |
| 126 |
- Added refractive index units. |
| 127 |
(PR #1816) |
| 128 |
- Fix converting to offset units of higher dimension e.g. gauge pressure |
| 129 |
(PR #1949) |
| 130 |
- Fix unhandled TypeError when auto_reduce_dimensions=True and non_int_type=Decimal |
| 131 |
(PR #1853) |
| 132 |
- Creating prefixed offset units now raises an error. |
| 133 |
(PR #1998) |
| 134 |
- Improved error message in `get_dimensionality()` when non existent units are passed. |
| 135 |
(PR #1874, Issue #1716) |
| 136 |
|
| 137 |
|
| 138 |
0.23 (2023-12-08) |
| 139 |
----------------- |
| 140 |
|
| 141 |
- Add _get_conversion_factor to registry with cache. |
| 142 |
- Homogenize input and ouput of internal regitry functions to |
| 143 |
facility typing, subclassing and wrapping. |
| 144 |
(_yield_unit_triplets, ) |
| 145 |
- Generated downstream_status page to track the |
| 146 |
state of downstream projects. |
| 147 |
- Improve typing annotation. |
| 148 |
- Updated to flexparser 0.2. |
| 149 |
- Faster wraps |
| 150 |
(PR #1862) |
| 151 |
- Add codspeed github action. |
| 152 |
- Move benchmarks to pytest-benchmarks. |
| 153 |
- Support pytest on python 3.12 wrt Fraction formatting change |
| 154 |
(#1818) |
| 155 |
- Fixed Transformation type protocol. |
| 156 |
(PR #1805, PR #1832) |
| 157 |
- Documented to_preferred and created added an autoautoconvert_to_preferred registry option. |
| 158 |
(PR #1803) |
| 159 |
- Enable Pint to parse uncertainty numbers. |
| 160 |
(See #1611, #1614) |
| 161 |
- Optimize matplotlib unit conversion for Quantity arrays |
| 162 |
(PR #1819) |
| 163 |
- Add numpy.linalg.norm implementation. |
| 164 |
(PR #1251) |
| 165 |
|
| 166 |
|
| 167 |
0.22 (2023-05-25) |
| 168 |
----------------- |
| 169 |
|
| 170 |
- Drop Python 3.8 compatability following NEP-29. |
| 171 |
- Drop NumPy < 1.21 following NEP-29. |
| 172 |
- Improved typing experience. |
| 173 |
- Migrated fully to pyproject.toml. |
| 174 |
- Migrated to ruff. |
| 175 |
- In order to make static typing possible as required by mypy |
| 176 |
and similar tools, the way to subclass the registry has been |
| 177 |
changed. |
| 178 |
- Allow non-quantity atol parameters for isclose and allclose. |
| 179 |
(PR #1783) |
| 180 |
|
| 181 |
|
| 182 |
0.21 (2023-05-01) |
| 183 |
----------------- |
| 184 |
|
| 185 |
- Add PEP621/631 support. |
| 186 |
(Issue #1647) |
| 187 |
- Exposed matplotlib unit formatter (PR #1703) |
| 188 |
- Fix error when when re-registering a formatter. |
| 189 |
(PR #1629) |
| 190 |
- Add new SI prefixes: ronna-, ronto-, quetta-, quecto-. |
| 191 |
(PR #1652) |
| 192 |
- Fix unit check with `atol` using `np.allclose` & `np.isclose`. |
| 193 |
(Issue #1658) |
| 194 |
- Implementation for numpy.positive added for Quantity. |
| 195 |
(PR #1663) |
| 196 |
- Changed frequency to angular frequency in the docs. |
| 197 |
(PR #1668) |
| 198 |
- Remove deprecated `alen` numpy function |
| 199 |
(PR #1678) |
| 200 |
- Updated URLs for log and offset unit errors. |
| 201 |
(PR #1727) |
| 202 |
- Patched TYPE_CHECKING import regression. |
| 203 |
(PR #1686) |
| 204 |
- Parse '°' along with previous text, rather than adding a space, |
| 205 |
allowing, eg 'Δ°C' as a unit. |
| 206 |
(PR #1729) |
| 207 |
- Improved escaping of special characters for LaTeX format |
| 208 |
(PR #1712) |
| 209 |
- Avoid addition of spurious trailing zeros when converting units and non-int-type is |
| 210 |
Decimal (PR #1625). |
| 211 |
- Implementation for numpy.delete added for Quantity. |
| 212 |
(PR #1669) |
| 213 |
- Fixed Quantity type returned from `__dask_postcompute__`. |
| 214 |
(PR #1722) |
| 215 |
- Added Townsend unit |
| 216 |
(PR #1738) |
| 217 |
- Fix get_compatible_units() in dynamically added units. |
| 218 |
(Issue #1725) |
| 219 |
- Fix pint-convert script |
| 220 |
(Issue #1646) |
| 221 |
- Honor non_int_type when dividing. |
| 222 |
(Issue #1505) |
| 223 |
- Fix `trapz`, `dot`, and `cross` to work properly with non-multiplicative units |
| 224 |
(Issue #1593) |
| 225 |
|
| 226 |
### Breaking Changes |
| 227 |
|
| 228 |
- Support percent and ppm units. Support the `%` symbol. |
| 229 |
(Issue #1277) |
| 230 |
- Fix error when parsing subtraction operator followed by white space. |
| 231 |
(PR #1701) |
| 232 |
- Removed Td as an alias for denier (within the Textile group) |
| 233 |
|
| 234 |
0.20.1 (2022-10-27) |
| 235 |
------------------- |
| 236 |
|
| 237 |
- Simplify registry subclassing. |
| 238 |
(Issue #1631) |
| 239 |
- Restore intersphinx cross reference functionality. |
| 240 |
(Issue #1637) |
| 241 |
- Use a newer version of flexparser that can deal with |
| 242 |
imports in linked/temporary folders. |
| 243 |
(Issue #1634) |
| 244 |
|
| 245 |
|
| 246 |
0.20 (2022-10-25) |
| 247 |
----------------- |
| 248 |
|
| 249 |
- Reorganized code into facets. |
| 250 |
Each facet encapsulate a Pint functionality. |
| 251 |
(See #1466, #1479) |
| 252 |
- The definition parser is now completely appart, making it easy to try other formats. |
| 253 |
(See #1595) |
| 254 |
- Extra requires for optional packages are now explicit in setup.cfg |
| 255 |
(See #1627) |
| 256 |
- Parse both Greek mu and micro Unicode points without error. |
| 257 |
(Issue #1030, #574) |
| 258 |
- Added angular frequency documentation page. |
| 259 |
- Move ASV benchmarks to dedicated folder. (Issue #1542) |
| 260 |
- An ndim attribute has been added to Quantity and DataFrame has been added to upcast |
| 261 |
types for pint-pandas compatibility. (#1596) |
| 262 |
- Fix a recursion error that would be raised when passing quantities to `cond` and `x`. |
| 263 |
(Issue #1510, #1530) |
| 264 |
- Update test_non_int tests for pytest. |
| 265 |
- Better support for uncertainties (See #1611, #1614) |
| 266 |
- Implement `numpy.broadcast_arrays` (#1607) |
| 267 |
- An ndim attribute has been added to Quantity and DataFrame has been added to upcast |
| 268 |
types for pint-pandas compatibility. (#1596) |
| 269 |
- Fix a recursion error that would be raised when passing quantities to `cond` and `x`. |
| 270 |
(Issue #1510, #1530) |
| 271 |
- Update test_non_int tests for pytest. |
| 272 |
- Create NaN-value quantities of appropriate non-int-type (Issue #1570). |
| 273 |
- New documentation format and organization! |
| 274 |
- Better support for pandas and dask. |
| 275 |
- Fix masked arrays (with multiple values) incorrectly being passed through |
| 276 |
setitem (Issue #1584) |
| 277 |
- Add Quantity.to_preferred |
| 278 |
|
| 279 |
0.19.2 (2022-04-23) |
| 280 |
------------------- |
| 281 |
|
| 282 |
- Add the ``separate_format_defaults`` registry setting (Issue #1501, PR #1503) |
| 283 |
- Handle definitions @import from relative paths on Windows |
| 284 |
(Issue #1508, thanks khaeru) |
| 285 |
|
| 286 |
|
| 287 |
0.19.1 (2022-04-06) |
| 288 |
------------------- |
| 289 |
|
| 290 |
- Provide a method to iter the definitions in the order they appear, |
| 291 |
recursing the imported files. (Issue #1498) |
| 292 |
|
| 293 |
|
| 294 |
0.19 (2022-04-04) |
| 295 |
----------------- |
| 296 |
|
| 297 |
- Better separation between parsing and loading of definitions. |
| 298 |
Implement a parsed "binary" version of "textual" definition files. |
| 299 |
Infrastructure to disk cache parsed definition files and RegistryCache |
| 300 |
resulting in a 10X speed up in registry instantiation when enabled. |
| 301 |
(Issue #1465) |
| 302 |
- Deprecate the old format defaulting behavior and prepare for the new one (Issue #1407) |
| 303 |
- Fix a bug for offset units of higher dimension, e.g. gauge pressure. |
| 304 |
(Issue #1066, thanks dalito) |
| 305 |
- Fix type hints of function wrapper (Issue #1431) |
| 306 |
- Upgrade min version of uncertainties to 3.1.4 |
| 307 |
- Add a example for `register_unit_format` to the formatting docs (Issue #1422). |
| 308 |
- Fix setting options of the application registry (Issue #1403). |
| 309 |
- Fix Quantity & Unit `is_compatible_with` with registry active contexts (Issue #1424). |
| 310 |
- Allow Quantity to parse 'NaN' and 'inf(inity)', case insensitive |
| 311 |
- Fix casting error when using to_reduced_units with array of int. |
| 312 |
(Issue #1184) |
| 313 |
- Use default numpy `np.printoptions` available since numpy 1.15. |
| 314 |
- Implement `numpy.nanprod` (Issue #1369) |
| 315 |
- Fix default_format ignored for measurement (Issue #1456) |
| 316 |
- Add `pint.testing` with functions to compare pint objects in tests (Issue #1421). |
| 317 |
- Fix handling modulo & floordiv operator in pint_eval (Issue #1470) |
| 318 |
- Fix `to_compact` and `infer_base_unit` for non-float non_int_type. |
| 319 |
- Fix `to_reduced_units` to work with dimensionless units. (Issue #919) |
| 320 |
- Fix parsing of units string with same canonalized name (Issue #1441 & #1142) |
| 321 |
- The pint-pandas example notebook has been moved to the pint-pandas package. |
| 322 |
|
| 323 |
### New Units |
| 324 |
- `sverdrup` (PR #1404) |
| 325 |
- `cooling_tower_ton` (PR #1484) |
| 326 |
|
| 327 |
### Breaking Changes |
| 328 |
|
| 329 |
- Update hour default symbol to `h`. (Issue #719) |
| 330 |
- Replace `h` with `ℎ` (U+210E) as default symbol for planck constant. |
| 331 |
- Change minimal Python version support to 3.8+ |
| 332 |
- Change minimal Numpy version support to 1.19+ |
| 333 |
|
| 334 |
0.18 (2021-10-26) |
| 335 |
----------------- |
| 336 |
|
| 337 |
### Release Manager: jules-cheron |
| 338 |
|
| 339 |
- Implement use of Quantity in the Quantity constructor (convert to specified units). |
| 340 |
(Issue #1231) |
| 341 |
- Rename .readthedocs.yml to .readthedocs.yaml, update MANIFEST.in (Issue #1311) |
| 342 |
- Fix a few small typos. |
| 343 |
(Issue #1308) |
| 344 |
- Fix babel format for `Unit`. |
| 345 |
(Issue #1085) |
| 346 |
- Fix handling of positional max/min arguments in clip function. |
| 347 |
(Issue #1244) |
| 348 |
- Fix string formatting of numpy array scalars. |
| 349 |
- Fix default format for Measurement class (Issue #1300) |
| 350 |
- Fix parsing of pretty units with same exponents but different sign. (Issue #1360) |
| 351 |
- Convert the application registry to a wrapper object (Issue #1365) |
| 352 |
- Add documentation for the string format options. |
| 353 |
(Issue #1357, #1375, thanks keewis) |
| 354 |
- Support custom units formats. |
| 355 |
(Issue #1371, thanks keewis) |
| 356 |
- Autoupdate pre-commit hooks. |
| 357 |
- Improved the application registry. |
| 358 |
(Issue #1366, thanks keewis) |
| 359 |
- Improved testing isolation using pytest fixtures. |
| 360 |
|
| 361 |
### Breaking Changes |
| 362 |
|
| 363 |
- pint no longer supports Python 3.6 |
| 364 |
- Minimum Numpy version supported is 1.17+ |
| 365 |
- Add supports for type hints for Quantity class. Quantity is now a Generic (PEP560). |
| 366 |
- Add support for [PEP561](https://www.python.org/dev/peps/pep-0561/) (Package Type information) |
| 367 |
|
| 368 |
|
| 369 |
0.17 (2021-03-22) |
| 370 |
----------------- |
| 371 |
|
| 372 |
- Add the Wh unit for battery capacity measurements |
| 373 |
(PR #1260, thanks Maciej Grela) |
| 374 |
- Fix issue with reducable dimensionless units when using power (Quantity**ndarray) |
| 375 |
(Issue #1185) |
| 376 |
- Fix comparisons between Quantities and Measurements. |
| 377 |
(Issue #1134, thanks lewisamarshall) |
| 378 |
- UnitsContainer returns false if other is str and cannnot be parsed |
| 379 |
(Issue #1179, thanks rfrowe) |
| 380 |
- Fix numpy.linalg.solve unit output. (Issue #1246) |
| 381 |
- Support numpy.lib.stride_tricks.sliding_window_view. (Issue #1255) |
| 382 |
- NEP29 Support docs. |
| 383 |
- Move all tests to pytest. |
| 384 |
- Fix to __pow__ and __ipow__ |
| 385 |
- Migrate to Github Actions. |
| 386 |
(Issue #1236) |
| 387 |
- Update linter to use pre-commit. |
| 388 |
- Quantity comparisons now ensure other is Quantity. |
| 389 |
- Add sign function compatibility. |
| 390 |
(thanks Robin Tesse) |
| 391 |
- Fix scalar to ndarray tolist. |
| 392 |
- Fix tolist function with scalar ndarray. |
| 393 |
(Issue #1195, thanks jules-ch) |
| 394 |
- Corrected typos and dacstrings |
| 395 |
- Implements a first benchmark suite in airspeed velocity (asv). |
| 396 |
- Power for pseudo-dimensionless units. |
| 397 |
(Issue #1185, thanks Kevin Fuhr) |
| 398 |
|
| 399 |
0.16.1 (2020-09-22) |
| 400 |
------------------- |
| 401 |
|
| 402 |
- Fix unpickling, now it is using the APP_REGISTRY as expected. |
| 403 |
(Issue #1175) |
| 404 |
|
| 405 |
0.16 (2020-09-13) |
| 406 |
----------------- |
| 407 |
|
| 408 |
- Fixed issue where performing an operation of a Quantity with certain units would perform an in-place |
| 409 |
unit conversion that modified the operand in addition to the returned value (Issues #1102 & #1144) |
| 410 |
- Implements Logarithmic Units like dBm, dB or decade |
| 411 |
(Issue #71, Thanks Dima Pustakhod, Clark Willison, Giorgio Signorello, Steven Casagrande, Jonathan Wheeler) |
| 412 |
- Drop dependency on setuptools pkg_resources to read package resources, using std lib importlib.resources instead. |
| 413 |
(Issue #1080) |
| 414 |
|
| 415 |
|
| 416 |
0.15 (2020-08-22) |
| 417 |
----------------- |
| 418 |
|
| 419 |
- Change `Quantity` and `Unit` HTML (i.e., Jupyter notebook) repr away from LaTeX to a |
| 420 |
simpler, more performant pretty-text and table based repr inspired by Sparse and Dask. |
| 421 |
(Issue #654) |
| 422 |
- Add `case_sensitive` option to registry for case (in)sensitive handling when parsing |
| 423 |
units (Issue #1145) |
| 424 |
- Implement Dask collection interface to support Pint Quantity wrapped Dask arrays. |
| 425 |
- Started automatically testing examples in the documentation |
| 426 |
- Fixed an exception generated when reducing dimensions with three or more |
| 427 |
units of the same type |
| 428 |
- Fixed right operand power for dimensionless Quantity to reflect numpy behavior. (Issue #1136) |
| 429 |
- Eliminated warning when setting a masked value on an underlying MaskedArray. |
| 430 |
- Add `sort` option to `formatting.formatter` to permit disabling sorting of component units in format string |
| 431 |
- Implements Logarithmic Units like dBm, dB or decade |
| 432 |
(Issue #71, Thanks Dima Pustakhod, Giorgio Signorello, Jonathan Wheeler) |
| 433 |
|
| 434 |
|
| 435 |
0.14 (2020-07-01) |
| 436 |
----------------- |
| 437 |
|
| 438 |
- Changes required to support Pint-Pandas 0.1. |
| 439 |
|
| 440 |
|
| 441 |
0.13 (2020-06-17) |
| 442 |
----------------- |
| 443 |
- Reinstated support for pickle protocol 0 and 1, which is required by pytables |
| 444 |
(Issue #1036, Thanks Guido Imperiale) |
| 445 |
- Fixed bug with multiplication of Quantity by dict (Issue #1032) |
| 446 |
- Bare zeros and NaNs (not wrapped by Quantity) are now gracefully accepted by all numpy |
| 447 |
operations; e.g. np.stack([Quantity([1, 2], "m"), [0, np.nan]) is now valid, whereas |
| 448 |
np.stack([Quantity([1, 2], "m"), [3, 4]) will continue raising DimensionalityError. |
| 449 |
(Issue #1050, Thanks Guido Imperiale) |
| 450 |
- NaN is now treated the same as zero in addition, subtraction, equality, and |
| 451 |
disequality (Issue #1051, Thanks Guido Imperiale) |
| 452 |
- Fixed issue where quantities with a very large magnitude would throw an IndexError |
| 453 |
when using to_compact() |
| 454 |
- Fixed crash when a Unit with prefix is declared for the first time while a Context |
| 455 |
containing unit redefinitions is active |
| 456 |
(Issues #1062 and #1097, Thanks Guido Imperiale) |
| 457 |
- New implementation of 'Lx' String Format Type Option |
| 458 |
The old implementation treated 'Lx' as 'S' as produced by 'uncertainties' |
| 459 |
package, but that is not fully compatible with SIunitx. The new code protects |
| 460 |
SIunitx by fixing what unceratinties produces. |
| 461 |
(Issue #814) |
| 462 |
- Added link to budding `pint-xarray` interface library to the docs, next to |
| 463 |
the link to pint-pandas. (Thanks Tom Nicholas.) |
| 464 |
- Removed outdated `_dir` attribute of `UnitsRegistry`, and added `__iter__` |
| 465 |
method so that now `list(ureg)` returns a list of all units in registry. |
| 466 |
(Issue #1072, Thanks Tom Nicholas) |
| 467 |
- Replace pkg_resources.version to importlib.metadata.version. (Issue #1083) |
| 468 |
- Fix typo in docs for wraps example with optional arguments. (Issue #1088) |
| 469 |
- Add momentum as a dimension |
| 470 |
- Fixed a bug where unit exponents were only partially superscripted in HTML format |
| 471 |
- Multiple contexts containing the same redefinition can now be stacked |
| 472 |
(Issue #1108, Thanks Guido Imperiale) |
| 473 |
- Fixed crash when some specific combinations of contexts were enabled |
| 474 |
(Issue #1112, Thanks Guido Imperiale) |
| 475 |
- Added support for checking prefixed units using `in` keyword (Issue #1086) |
| 476 |
- Updated many examples in the documentation to reflect Pint's current behavior |
| 477 |
|
| 478 |
|
| 479 |
0.12 (2020-05-29) |
| 480 |
----------------- |
| 481 |
|
| 482 |
- Add full support for Decimal and Fraction at the registry level. |
| 483 |
**BREAKING CHANGE**: |
| 484 |
`use_decimal` is deprecated. Use `non_int_type=Decimal` when instantiating |
| 485 |
the registry. |
| 486 |
- Fixed bug where numpy.pad didn't work without specifying constant_values or |
| 487 |
end_values (Issue #1026) |
| 488 |
|
| 489 |
|
| 490 |
0.11 (2020-02-19) |
| 491 |
----------------- |
| 492 |
|
| 493 |
- Added pint-convert script. |
| 494 |
- Remove `default_en_0.6.txt`. |
| 495 |
- Make `__str__` and `__format__` locale configurable. |
| 496 |
(Issue #984) |
| 497 |
- Quantities wrapping NumPy arrays will no longer warning for the changed |
| 498 |
array function behavior introduced in 0.10. |
| 499 |
(Issue #1029, Thanks Jon Thielen) |
| 500 |
- **BREAKING CHANGE**: |
| 501 |
The array protocol fallback deprecated in version 0.10 has been removed. |
| 502 |
(Issue #1029, Thanks Jon Thielen) |
| 503 |
- Now we use `pyproject.toml` for providing `setuptools_scm` settings |
| 504 |
- Remove `default_en_0.6.txt` |
| 505 |
- Reorganize long_description. |
| 506 |
- Moved Pi to definitions files. |
| 507 |
- Use ints (not floats) a defaults at many points in the codebase as in Python 3 |
| 508 |
the true division is the default one. |
| 509 |
- **BREAKING CHANGE**: |
| 510 |
Added `from_string` method to all Definitions subclasses. The value/converter |
| 511 |
argument of the constructor no longer accepts an string. |
| 512 |
It is unlikely that this change affects the end user. |
| 513 |
- Added additional NumPy function implementations (allclose, intersect1d) |
| 514 |
(Issue #979, Thanks Jon Thielen) |
| 515 |
- Allow constants in units by using a leading underscore (Issue #989, Thanks |
| 516 |
Juan Nunez-Iglesias) |
| 517 |
- Fixed bug where to_compact handled prefix units incorrectly (Issue #960) |
| 518 |
|
| 519 |
|
| 520 |
0.10.1 (2020-01-07) |
| 521 |
------------------- |
| 522 |
|
| 523 |
- Fixed bug introduced in 0.10 that prevented creation of size-zero Quantities |
| 524 |
from NumPy arrays by multiplication. |
| 525 |
(Issue #977, Thanks Jon Thielen) |
| 526 |
- Fixed several Sphinx issues. Fixed intersphinx hooks to all classes missing. |
| 527 |
(Issue #881, Thanks Guido Imperiale) |
| 528 |
- Fixed __array__ signature to match numpy docs (Issue #974, Thanks Ryan May) |
| 529 |
|
| 530 |
|
| 531 |
0.10 (2020-01-05) |
| 532 |
----------------- |
| 533 |
|
| 534 |
- **BREAKING CHANGE**: |
| 535 |
Boolean value of Quantities with offsets units is ambiguous, and so, now a ValueError |
| 536 |
is raised when attempting to cast such a Quantity to boolean. |
| 537 |
(Issue #965, Thanks Jon Thielen) |
| 538 |
- **BREAKING CHANGE**: |
| 539 |
`__array_ufunc__` has been implemented on `pint.Unit` to permit |
| 540 |
multiplication/division by units on the right of ufunc-reliant array types (like |
| 541 |
Sparse) with proper respect for the type casting hierarchy. However, until [an |
| 542 |
upstream issue with NumPy is resolved](https://github.com/numpy/numpy/issues/15200), |
| 543 |
this breaks creation of Masked Array Quantities by multiplication on the right. |
| 544 |
Read Pint's [NumPy support |
| 545 |
documentation](https://pint.readthedocs.io/en/latest/numpy.html) for more details. |
| 546 |
(Issues #963 and #966, Thanks Jon Thielen) |
| 547 |
- Documentation on Pint's array type compatibility has been added to the NumPy support |
| 548 |
page, including a graph of the duck array type casting hierarchy as understood by Pint |
| 549 |
for N-dimensional arrays. |
| 550 |
(Issue #963, Thanks Jon Thielen, Stephan Hoyer, and Guido Imperiale) |
| 551 |
- Improved compatibility for downcast duck array types like Sparse.COO. A collection |
| 552 |
of basic tests has been added. |
| 553 |
(Issue #963, Thanks Jon Thielen) |
| 554 |
- Improvements to wraps and check: |
| 555 |
|
| 556 |
- fail upon decoration (not execution) by checking wrapped function signature against |
| 557 |
wraps/check arguments. |
| 558 |
(might BREAK test code) |
| 559 |
- wraps only accepts strings and Units (not quantities) to avoid confusion with magnitude. |
| 560 |
(might BREAK code not conforming to documentation) |
| 561 |
- when strict=True, strings that can be parsed to quantities are accepted as arguments. |
| 562 |
|
| 563 |
- Add revolutions per second (rps) |
| 564 |
- Improved compatibility for upcast types like xarray's DataArray or Dataset, to which |
| 565 |
Pint Quantities now fully defer for arithmetic and NumPy operations. A collection of |
| 566 |
basic tests for proper deferral has been added (for full integration tests, see |
| 567 |
xarray's test suite). The list of upcast types is available at |
| 568 |
`pint.compat.upcast_types` in the API. |
| 569 |
(Issue #959, Thanks Jon Thielen) |
| 570 |
- Moved docstrings to Numpy Docs |
| 571 |
(Issue #958) |
| 572 |
- Added tests for immutability of the magnitude's type under common operations |
| 573 |
(Issue #957, Thanks Jon Thielen) |
| 574 |
- Switched test configuration to pytest and added tests of Pint's matplotlib support. |
| 575 |
(Issue #954, Thanks Jon Thielen) |
| 576 |
- Deprecate array protocol fallback except where explicitly defined (`__array__`, |
| 577 |
`__array_priority__`, `__array_function__`, `__array_ufunc__`). The fallback will |
| 578 |
remain until the next minor version, or if the environment variable |
| 579 |
`PINT_ARRAY_PROTOCOL_FALLBACK` is set to 0. |
| 580 |
(Issue #953, Thanks Jon Thielen) |
| 581 |
- Removed eval usage when creating UnitDefinition and PrefixDefinition from string. |
| 582 |
(Issue #942) |
| 583 |
- Added `fmt_locale` argument to registry. |
| 584 |
(Issue #904) |
| 585 |
- Better error message when Babel is not installed. |
| 586 |
(Issue #899) |
| 587 |
- It is now possible to redefine units within a context, and use pint for currency |
| 588 |
conversions. Read |
| 589 |
|
| 590 |
- https://pint.readthedocs.io/en/latest/contexts.html |
| 591 |
- https://pint.readthedocs.io/en/latest/currencies.html |
| 592 |
|
| 593 |
(Issue #938, Thanks Guido Imperiale) |
| 594 |
- NaN (any capitalization) in a definitions file is now treated as a number |
| 595 |
(Issue #938, Thanks Guido Imperiale) |
| 596 |
- Added slinch to Avoirdupois group |
| 597 |
(Issue #936, Thanks awcox21) |
| 598 |
- Fix bug where ureg.disable_contexts() would fail to fully disable throwaway contexts |
| 599 |
(Issue #932, Thanks Guido Imperiale) |
| 600 |
- Use black, flake8, and isort on the project |
| 601 |
(Issues #929, #931, and #937, Thanks Guido Imperiale) |
| 602 |
- Auto-increase package version at every commit when pint is installed from the git tip, |
| 603 |
e.g. pip install git+https://github.com/hgrecco/pint.git. |
| 604 |
(Issues #930 and #934, Thanks Guido Imperiale and KOLANICH) |
| 605 |
- Fix HTML (Jupyter Notebook) and LateX representation of some units |
| 606 |
(Issues #927 / #928 / #933, Thanks Guido Imperiale) |
| 607 |
- Fixed the definition of RKM unit as gf / tex |
| 608 |
(Issue #921, Thanks Giuseppe Corbelli) |
| 609 |
- **BREAKING CHANGE**: |
| 610 |
Implement NEP-18 <https://numpy.org/neps/nep-0018-array-function-protocol.html> for |
| 611 |
Pint Quantities. Most NumPy functions that previously stripped units when applied to |
| 612 |
Pint Quantities will now return Quantities with proper units (on NumPy v1.16 with |
| 613 |
the array_function protocol enabled or v1.17+ by default) instead of ndarrays. Any |
| 614 |
non-explictly-handled functions will now raise a "no implementation found" TypeError |
| 615 |
instead of stripping units. The previous behavior is maintained for NumPy < v1.16 and |
| 616 |
when the array_function protocol is disabled. |
| 617 |
(Issue #905, Thanks Jon Thielen and andrewgsavage) |
| 618 |
- Implementation of NumPy ufuncs has been refactored to share common utilities with |
| 619 |
NumPy function implementations |
| 620 |
(Issue #905, Thanks Jon Thielen) |
| 621 |
- Pint Quantities now support the `@` matrix mulitiplication operator (on NumPy v1.16+), |
| 622 |
as well as the `dot`, `flatten`, `astype`, and `item` methods. |
| 623 |
(Issue #905, Thanks Jon Thielen) |
| 624 |
- **BREAKING CHANGE**: |
| 625 |
Fix crash when applying pprint to large sets of Units. |
| 626 |
DefinitionSyntaxError is now a subclass of SyntaxError (was ValueError). |
| 627 |
DimensionalityError and OffsetUnitCalculusError are now subclasses of TypeError (was |
| 628 |
ValueError). |
| 629 |
(Issue #915, Thanks Guido Imperiale) |
| 630 |
- All Exceptions can now be pickled and can be accessed from the top-level package. |
| 631 |
(Issue #915, Thanks Guido Imperiale) |
| 632 |
- Mark regex as raw strings to avoid unnecessary warnings. |
| 633 |
(Issue #913, Thanks keewis) |
| 634 |
- Implement registry-based string preprocessing as list of callables. |
| 635 |
(Issues #429 and #851, thanks Jon Thielen) |
| 636 |
- Context activation and deactivation is now instantaneous; drastically reduced memory |
| 637 |
footprint of a context (it used to be ~1.6MB per context; now it's a few bytes) |
| 638 |
(Issues #909 / #923 / #938, Thanks Guido Imperiale) |
| 639 |
- **BREAKING CHANGE**: |
| 640 |
Drop support for Python < 3.6, numpy < 1.14, and uncertainties < 3.0; |
| 641 |
if you still need them, please install pint 0.9. |
| 642 |
Pint now adheres to NEP-29 <https://numpy.org/neps/nep-0029-deprecation_policy.html> |
| 643 |
as a rolling dependencies version policy. |
| 644 |
(Issues #908 and #910, Thanks Guido Imperiale) |
| 645 |
- Show proper code location of UnitStrippedWarning exception. |
| 646 |
(Issue #907, thanks Martin K. Scherer) |
| 647 |
- Reimplement _Quantity.__iter__ to return an iterator. |
| 648 |
(Issues #751 and #760, Thanks Jon Thielen) |
| 649 |
- Add http://www.dimensionalanalysis.org/ to README |
| 650 |
(Thanks Shiri Avni) |
| 651 |
- Allow for user defined units formatting. |
| 652 |
(Issue #873, Thanks Ryan Clary) |
| 653 |
- Quantity, Unit, and Measurement are now accessible as top-level classes |
| 654 |
(pint.Quantity, pint.Unit, pint.Measurement) and can be |
| 655 |
instantiated without explicitly creating a UnitRegistry |
| 656 |
(Issue #880, Thanks Guido Imperiale) |
| 657 |
- Contexts don't need to have a name anymore |
| 658 |
(Issue #870, Thanks Guido Imperiale) |
| 659 |
- "Board feet" unit added top default registry |
| 660 |
(Issue #869, Thanks Guido Imperiale) |
| 661 |
- New syntax to add aliases to already existing definitions |
| 662 |
(Issue #868, Thanks Guido Imperiale) |
| 663 |
- copy.deepcopy() can now copy a UnitRegistry |
| 664 |
(Issues #864 and #877, Thanks Guido Imperiale) |
| 665 |
- Enabled many tests in test_issues when numpy is not available |
| 666 |
(Issue #863, Thanks Guido Imperiale) |
| 667 |
- Document the '_' symbols found in the definitions files |
| 668 |
(Issue #862, Thanks Guido Imperiale) |
| 669 |
- Improve OffsetUnitCalculusError message. |
| 670 |
(Issue #839, Thanks Christoph Buchner) |
| 671 |
- Atomic units for intensity and electric field. |
| 672 |
(Issue #834, Thanks Øyvind Sigmundson Schøyen) |
| 673 |
- Allow np arrays of scalar quantities to be plotted. |
| 674 |
(Issue #825, Thanks andrewgsavage) |
| 675 |
- Updated gravitational constant to CODATA 2018. |
| 676 |
(Issue #816, Thanks Jellby) |
| 677 |
- Update to new SI definition and CODATA 2018. |
| 678 |
(Issue #811, Thanks Jellby) |
| 679 |
- Allow units with aliases but no symbol. |
| 680 |
(Issue #808, Thanks Jellby) |
| 681 |
- Fix definition of dimensionless units and constants. |
| 682 |
(Issue #805, Thanks Jellby) |
| 683 |
- Added RKM unit (used in textile industry). |
| 684 |
(Issue #802, Thanks Giuseppe Corbelli) |
| 685 |
- Remove __name__ method definition in BaseRegistry. |
| 686 |
(Issue #787, Thanks Carlos Pascual) |
| 687 |
- Added t_force, short_ton_force and long_ton_force. |
| 688 |
(Issue #796, Thanks Jan Hein de Jong) |
| 689 |
- Fixed error message of DefinitionSyntaxError |
| 690 |
(Issue #791, Thanks Clément Pit-Claudel) |
| 691 |
- Expanded the potential use of Decimal type to parsing. |
| 692 |
(Issue #788, Thanks Francisco Couzo) |
| 693 |
- Fixed gram name to allow translation by babel. |
| 694 |
(Issue #776, Thanks Hervé Cauwelier) |
| 695 |
- Default group should only have orphan units. |
| 696 |
(Issue #766, Thanks Jules Chéron) |
| 697 |
- Added custom constructors from_sequence and from_list. |
| 698 |
(Issue #761, Thanks deniz195) |
| 699 |
- Add quantity formatting with ndarray. |
| 700 |
(Issue #559, Thanks Jules Chéron) |
| 701 |
- Add pint-pandas notebook docs |
| 702 |
(Issue #754, Thanks andrewgsavage) |
| 703 |
- Use µ as default abbreviation for micro. |
| 704 |
(Issue #666, Thanks Eric Prestat) |
| 705 |
|
| 706 |
|
| 707 |
0.9 (2019-01-12) |
| 708 |
---------------- |
| 709 |
|
| 710 |
- Add support for registering with matplotlib's unit handling |
| 711 |
(Issue #317, thanks dopplershift) |
| 712 |
- Add converters for matplotlib's unit support. |
| 713 |
(Issue #317, thanks Ryan May) |
| 714 |
- Fix unwanted side effects in auto dimensionality reduction. |
| 715 |
(Issue #516, thanks Ben Loer) |
| 716 |
- Allow dimensionality check for non Quantity arguments. |
| 717 |
- Make Quantity and UnitContainer objects hashable. |
| 718 |
(Issue #286, thanks Nevada Sanchez) |
| 719 |
- Fix unit tests errors with numpy >=1.13. |
| 720 |
(Issue #577, thanks cpascual) |
| 721 |
- Avoid error in in-place exponentiation with numpy > 1.11. |
| 722 |
(Issue #577, thanks cpascual) |
| 723 |
- fix compatible units in context. |
| 724 |
(thanks enrico) |
| 725 |
- Added warning for unsupported ufunc. |
| 726 |
(Issue #626, thanks kanhua) |
| 727 |
- Improve IPython pretty printers. |
| 728 |
(Issue #590, thanks tecki) |
| 729 |
- Drop Support for Python 2.6, 3.0, 3.1 and 3.2. |
| 730 |
(Issue #567) |
| 731 |
- Prepare for deprecation announced in Python 3.7 |
| 732 |
(Issue #747, thanks Simon Willison) |
| 733 |
- Added several new units and Systems |
| 734 |
(Issues #749, #737, ) |
| 735 |
- Started experimental pandas support |
| 736 |
(Issue #746 and others. Thanks andrewgsavage, znicholls and others) |
| 737 |
- wraps and checks now supports kwargs and defaults. |
| 738 |
(Issue #660, thanks jondoesntgit) |
| 739 |
|
| 740 |
|
| 741 |
0.8.1 (2017-06-05) |
| 742 |
------------------ |
| 743 |
|
| 744 |
- Add support for datetime math. |
| 745 |
(Issue #510, thanks robertd) |
| 746 |
- Fixed _repr_html_ in Python 2.7. |
| 747 |
(Issue #512) |
| 748 |
- Implemented BaseRegistry.auto_reduce_dimensions. |
| 749 |
(Issue #500, thanks robertd) |
| 750 |
- Fixed dimension compatibility bug introduced on Registry refactoring |
| 751 |
(Issue #523, thanks dalito) |
| 752 |
|
| 753 |
|
| 754 |
0.8 (2017-04-16) |
| 755 |
---------------- |
| 756 |
|
| 757 |
- Refactored the Registry in multiple classes for better separation of concerns and clarity. |
| 758 |
- Implemented support for defining multiple units per `define` call (one definition per line). |
| 759 |
(Issue #462) |
| 760 |
- In pow and ipow, allow array exponents (with len > 1) when base is dimensionless. |
| 761 |
(Issue #483) |
| 762 |
- Wraps now gets the canonical name of the unit when passed as string. |
| 763 |
(Issue #468) |
| 764 |
- NumPy exp and log keeps the type |
| 765 |
(Issue #95) |
| 766 |
- Implemented a function decorator to ensure that a context is active (with_context) |
| 767 |
(Issue #465) |
| 768 |
- Add warning when a System contains an unknown Group. |
| 769 |
(Issue #472) |
| 770 |
- Add conda-forge installation snippet. |
| 771 |
(Issue #485, thanks stadelmanma) |
| 772 |
- Properly support floor division and modulo. |
| 773 |
(Issue #474, thanks tecki) |
| 774 |
- Measurement Correlated variable fix. |
| 775 |
(Issue #463, thanks tadhgmister) |
| 776 |
- Implement degree sign handling. |
| 777 |
(Issue #449, thanks iamthad) |
| 778 |
- Change `UndefinedUnitError` to inherit from `AttributeError` |
| 779 |
(Issue #480, thanks jhidding) |
| 780 |
- Simplified travis for faster testing. |
| 781 |
- Fixed order units in siunitx formatting. |
| 782 |
(Issue #441) |
| 783 |
- Changed Systems lister to return a list instead of frozenset. |
| 784 |
(Issue #425, thanks GloriaVictis) |
| 785 |
- Fixed issue with negative values in to_compact() method. |
| 786 |
(Issue #443, thanks nowox) |
| 787 |
- Improved defintions. |
| 788 |
(Issues #448, thanks gdonval) |
| 789 |
- Improved Parser to support capital "E" on scientific notation. |
| 790 |
(Issue #390, thanks javenoneal) |
| 791 |
- Make sure that prefixed units are defined on the registry when unpickling. |
| 792 |
(Issue #405) |
| 793 |
- Automatic unit names translation through babel. |
| 794 |
(Issue #338, thanks alexbodn) |
| 795 |
- Support pickling Unit objects. |
| 796 |
(Issue #349) |
| 797 |
- Add support for wavenumber/kayser in spectroscopy context. |
| 798 |
(Issue #321, thanks gerritholl) |
| 799 |
- Improved formatting. |
| 800 |
(thanks endolith and others) |
| 801 |
- Add support for inline comments in definitions file. |
| 802 |
(Issue #366) |
| 803 |
- Implement Unit.__deepcopy__. |
| 804 |
(Issue #357, thanks noahl) |
| 805 |
- Allow changing shape for Quantities with numpy arrays. |
| 806 |
(Issue #344, thanks tecki) |
| 807 |
|
| 808 |
|
| 809 |
0.7.2 (2016-03-02) |
| 810 |
------------------ |
| 811 |
- Fixed backward incompatibility problem when parsing dimensionless units. |
| 812 |
|
| 813 |
|
| 814 |
0.7.1 (2016-02-23) |
| 815 |
------------------ |
| 816 |
|
| 817 |
- Use NIST as source for most of the unit information. |
| 818 |
- Added message to assertQuantityEqual. |
| 819 |
- Added detection of circular dependencies in definitions. |
| 820 |
|
| 821 |
|
| 822 |
0.7 (2016-02-20) |
| 823 |
---------------- |
| 824 |
|
| 825 |
- Added Systems and groups. |
| 826 |
(Issue #215, #315) |
| 827 |
- Implemented references for wraps decorator. |
| 828 |
(Issue #195) |
| 829 |
- Added check decorator to UnitRegistry. |
| 830 |
(Issue #283, thanks kaidokert) |
| 831 |
- Added compact conversion. |
| 832 |
(See #224, thanks Ryan Dwyer) |
| 833 |
- Added compact formating code. |
| 834 |
(Issue #240) |
| 835 |
- New Unit Class. |
| 836 |
(thanks Matthieu Dartiailh) |
| 837 |
- Refactor UnitRegistry. |
| 838 |
(thanks Matthieu Dartiailh) |
| 839 |
- Move definitions, errors, and converters into their own modules. |
| 840 |
(thanks Matthieu Dartiailh) |
| 841 |
- UnitsContainer is now immutable |
| 842 |
(Issue #202, thanks Matthieu Dartiailh) |
| 843 |
- New parser and evaluator. |
| 844 |
(Issue #226, thanks Aaron Coleman) |
| 845 |
- Added support for Unicode identifiers. |
| 846 |
- Added m_as as way top retrieve the magnitude in different units. |
| 847 |
(Issue #227) |
| 848 |
- Added Short form for magnitude and units. |
| 849 |
(Issue #234) |
| 850 |
- Improved deepcopy. |
| 851 |
(Issue #252, thanks Emilien Kofman) |
| 852 |
- Improved testing infrastructure. |
| 853 |
- Improved docs. |
| 854 |
(thanks Ryan Dwyer, Martin Thoma, Andrea Zonca) |
| 855 |
- Fixed short names on electron_volt and hartree. |
| 856 |
- Fixed definitions of scruple and drachm. |
| 857 |
(Issue #262, thanks takowl) |
| 858 |
- Fixed troy ounce to 480 'grains'. |
| 859 |
(thanks elifab) |
| 860 |
- Added 'quad' as a unit of energy (= 10**15 Btu). |
| 861 |
(thanks Ed Schofield) |
| 862 |
- Added "hectare" as a supported unit of area and 'ha' as the symbol for hectare. |
| 863 |
(thanks Ed Schofield) |
| 864 |
- Added peak sun hour and Langley. |
| 865 |
(thanks Ed Schofield) |
| 866 |
- Added photometric units: lumen & lux. |
| 867 |
(Issue #230, thanks janpipek) |
| 868 |
- A fraction magnitude quantity is conserved |
| 869 |
(Issue #323, thanks emilienkofman) |
| 870 |
- Improved conversion performance by removing unnecessart try/except. |
| 871 |
(Issue #251) |
| 872 |
- Added to_tuple and from_tuple to facilitate serialization. |
| 873 |
- Fixed support for NumPy 1.10 due to a change in the Default casting rule |
| 874 |
(Issue #320) |
| 875 |
- Infrastructure: Added doctesting. |
| 876 |
- Infrastructure: Better way to specify exclude matrix in travis. |
| 877 |
|
| 878 |
|
| 879 |
0.6 (2014-11-07) |
| 880 |
---------------- |
| 881 |
|
| 882 |
- Fix operations with measurments and user defined units. |
| 883 |
(Issue #204) |
| 884 |
- Faster conversions through caching and other performance improvements. |
| 885 |
(Issue #193, thanks MatthieuDartiailh) |
| 886 |
- Better error messages on Quantity.__setitem__. |
| 887 |
(Issue #191) |
| 888 |
- Fixed abbreviation of fluid_ounce. |
| 889 |
(Issue #187, thanks hsoft) |
| 890 |
- Defined Angstrom symbol. |
| 891 |
(Issue #181, thanks JonasOlson) |
| 892 |
- Removed fetching version from git repo as it triggers XCode installation on OSX. |
| 893 |
(Issue #178, thanks deanishe) |
| 894 |
- Improved context documentation. |
| 895 |
(Issue #176 and 179, thanks rsking84) |
| 896 |
- Added Chemistry context. |
| 897 |
(Issue #179, thanks rsking84) |
| 898 |
- Fix help(UnitRegisty) |
| 899 |
(Issue #168) |
| 900 |
- Optimized "get_dimensionality" and "get_base_name". |
| 901 |
(Issue #166 and #167, thanks jbmohler) |
| 902 |
- Renamed ureg.parse_units parameter "to_delta" to "as_delta" to make clear. |
| 903 |
that no conversion happens. Accordingly, the parameter/property |
| 904 |
"default_to_delta" of UnitRegistry was renamed to "default_as_delta". |
| 905 |
(Issue #158, thanks dalit) |
| 906 |
- Fixed problem when adding two uncertainties. |
| 907 |
(thanks dalito) |
| 908 |
- Full support for Offset units (e.g. temperature) |
| 909 |
(Issue #88, #143, #147 and #161, thanks dalito) |
| 910 |
|
| 911 |
|
| 912 |
0.5.2 (2014-07-31) |
| 913 |
------------------ |
| 914 |
|
| 915 |
- Changed travis config to use miniconda for faster testing. |
| 916 |
- Added wheel configuration to setup.cfg. |
| 917 |
- Ensure resource streams are closed after reading. |
| 918 |
- Require setuptools. |
| 919 |
(Issue #169) |
| 920 |
- Implemented real, imag and T Quantity properties. |
| 921 |
(Issue #171) |
| 922 |
- Implemented __int__ and __long__ for Quantity |
| 923 |
(Issue #170) |
| 924 |
- Fixed SI prefix error on ureg.convert. |
| 925 |
(Issue #156, thanks jdreaver) |
| 926 |
- Fixed parsing of multiparemeter contexts. |
| 927 |
(Issue #174) |
| 928 |
|
| 929 |
|
| 930 |
0.5.1 (2014-06-03) |
| 931 |
------------------ |
| 932 |
|
| 933 |
- Implemented a standard way to change the registry used in unpickling operations. |
| 934 |
(Issue #148) |
| 935 |
- Fix bug where conversion would fail due to caching. |
| 936 |
(Issue #140, thanks jdreaver) |
| 937 |
- Allow assigning Not a Number to a quantity array. |
| 938 |
(Issue #127) |
| 939 |
- Decoupled Quantity in place and not in place unit conversion methods. |
| 940 |
- Return None in functions that modify quantities in place. |
| 941 |
- Improved testing infrastructure to check for unwanted warnings. |
| 942 |
- Added test function at the package level to run all tests. |
| 943 |
|
| 944 |
|
| 945 |
0.5 (2014-05-07) |
| 946 |
---------------- |
| 947 |
|
| 948 |
- Improved test suite helper functions. |
| 949 |
- Print honors default format w/o format(). |
| 950 |
(Issue #132, thanks mankoff) |
| 951 |
- Fixed sum() by treating number zero as a special case. |
| 952 |
(Issue #122, thanks rec) |
| 953 |
- Improved behaviour in ScaleConverter, OffsetConverter and Quantity.to. |
| 954 |
(Issue #120) |
| 955 |
- Reimplemented loading of default definitions to allow Pint in a cx_freeze or similar package. |
| 956 |
(Issue #118, thanks jbmohler) |
| 957 |
- Implemented parsing of pretty printed units. |
| 958 |
(Issue #117, thanks jpgrayson) |
| 959 |
- Fixed representation of dimensionless quantities. |
| 960 |
(Issue #112, thanks rec) |
| 961 |
- Raise error when invalid formatting code is given. |
| 962 |
(Issue #111, thanks rec) |
| 963 |
- Default registry to lazy load, raise error on redefinition |
| 964 |
(Issue #108, thanks rec, aepsil0n) |
| 965 |
- Added condensed format. |
| 966 |
(Issue #107, thanks rec) |
| 967 |
- Added UnitRegistry () operator to parse expression replacing []. |
| 968 |
(Issue #106, thanks rec) |
| 969 |
- Optional case insensitive unit parsing. |
| 970 |
(Issue #105, thanks rec, jeremyfreeman, dbrnz) |
| 971 |
- Change the Quantity mutability depending on magnitude type. |
| 972 |
(Issue #104, thanks rec) |
| 973 |
- Implemented API to list compatible units. |
| 974 |
(Issue #89) |
| 975 |
- Implemented cache of key UnitRegistry methods. |
| 976 |
- Rewrote the Measurement class to use uncertainties. |
| 977 |
(Issue #24) |
| 978 |
|
| 979 |
|
| 980 |
0.4.2 (2014-02-14) |
| 981 |
------------------ |
| 982 |
|
| 983 |
- Python 2.6 support |
| 984 |
(Issue #96, thanks tiagocoutinho) |
| 985 |
- Fixed symbol for inch. |
| 986 |
(Issue #102, thanks cybertoast) |
| 987 |
- Stop raising AttributeError when wrapping funcs without all of the attributes. |
| 988 |
(Issue #100, thanks jturner314) |
| 989 |
- Fixed warning appearing in Py2.x when comparing a Numpy Array with an empty string. |
| 990 |
(Issue #98, thanks jturner314) |
| 991 |
- Add links to AUR packages in docs. |
| 992 |
(Issue #91, thanks jturner314) |
| 993 |
- Fixed garbage collection related problem. |
| 994 |
(Issue #92, thanks jturner314) |
| 995 |
|
| 996 |
|
| 997 |
0.4.1 (2014-01-12) |
| 998 |
------------------ |
| 999 |
|
| 1000 |
- Integer Division with Arrays. |
| 1001 |
(Issue #80, thanks jdreaver) |
| 1002 |
- Improved Documentation. |
| 1003 |
(Issue #83, thanks choloepus) |
| 1004 |
- Removed 'h' alias for hour due to conflict with Planck's constant. |
| 1005 |
(Issue #82, thanks choloepus) |
| 1006 |
- Improved get_base_units for non-multiplicative units. |
| 1007 |
(Issue #85, thanks exxus) |
| 1008 |
- Refactored code for multiplication. |
| 1009 |
(Issue #84, thanks jturner314) |
| 1010 |
- Removed 'R' alias for roentgen as it collides with molar_gas_constant. |
| 1011 |
(Issue #87, thanks rsking84) |
| 1012 |
- Improved naming of temperature units and multiplication of non-multiplicative units. |
| 1013 |
(Issue #86, tahsnk exxus) |
| 1014 |
|
| 1015 |
|
| 1016 |
|
| 1017 |
0.4 (2013-12-17) |
| 1018 |
---------------- |
| 1019 |
|
| 1020 |
- Introduced Contexts: relation between incompatible dimensions. |
| 1021 |
(Issue #65) |
| 1022 |
- Fixed get_base_units for non multiplicative units. |
| 1023 |
(Related to issue #66) |
| 1024 |
- Implemented default formatting for quantities. |
| 1025 |
- Changed comparison between Quantities containing NumPy arrays. |
| 1026 |
(Issue #75) - BACKWARDS INCOMPATIBLE CHANGE |
| 1027 |
- Fixes for NumPy 1.8 due to changes in handling binary ops. |
| 1028 |
(Issue #73) |
| 1029 |
|
| 1030 |
|
| 1031 |
0.3.3 (2013-11-29) |
| 1032 |
------------------ |
| 1033 |
|
| 1034 |
- ParseHelper can now parse units named like python keywords. |
| 1035 |
(Issue #69) |
| 1036 |
- Fix comparison of quantities. |
| 1037 |
(Issue #74) |
| 1038 |
- Fix Inequality operator. |
| 1039 |
(Issue #70, thanks muggenhor) |
| 1040 |
- Improved travis configuration. |
| 1041 |
(thanks muggenhor) |
| 1042 |
|
| 1043 |
|
| 1044 |
0.3.2 (2013-10-22) |
| 1045 |
------------------ |
| 1046 |
|
| 1047 |
- Fix get_dimensionality for non multiplicative units. |
| 1048 |
(Issue #66) |
| 1049 |
- Proper handling of @import directive inside a file read using pkg_resources. |
| 1050 |
(Issue #68) |
| 1051 |
|
| 1052 |
|
| 1053 |
0.3.1 (2013-09-15) |
| 1054 |
------------------ |
| 1055 |
|
| 1056 |
- fix right division on python 2.7 |
| 1057 |
(Issue #58, thanks natezb) |
| 1058 |
- fix formatting of fractional exponentials between 0 and 1. |
| 1059 |
(Issue #62, thanks jdreaver) |
| 1060 |
- fix installation as egg. |
| 1061 |
(Issue #61) |
| 1062 |
- fix handling of strange values as input of Quantity. |
| 1063 |
(Issue #53) |
| 1064 |
- math operations between quantities of different registries now raise a ValueError. |
| 1065 |
(Issue #52) |
| 1066 |
|
| 1067 |
|
| 1068 |
0.3 (2013-09-02) |
| 1069 |
---------------- |
| 1070 |
|
| 1071 |
- support for IPython autocomplete and rich display. |
| 1072 |
(Issues #30 and #31) |
| 1073 |
- support for @import directive in definitions file. |
| 1074 |
(Issue #22) |
| 1075 |
- support for wrapping functions to make them pint-aware. |
| 1076 |
(Issue #16) |
| 1077 |
- support for comparing UnitsContainer to string. |
| 1078 |
(Issue #35) |
| 1079 |
- fix error raised while converting from a single unit to one expressed as |
| 1080 |
the relation between many. |
| 1081 |
(Issue #29) |
| 1082 |
- fix error raised when unit symbol is missing. |
| 1083 |
(Issue #41) |
| 1084 |
- fix error raised when magnitude is Decimal. |
| 1085 |
(Issue #46, thanks danielsokolowski) |
| 1086 |
- support for non-installed pint. |
| 1087 |
(Issue #42, thanks danielsokolowski) |
| 1088 |
- support for application of numpy function on non-ndarray magnitudes. |
| 1089 |
(Issue #44) |
| 1090 |
- support for math operations on dimensionless Quantities (written with units). |
| 1091 |
(Issue #45) |
| 1092 |
- fix obtaining dimensionless quantity from string. |
| 1093 |
(Issue #50) |
| 1094 |
- fix adding and comparing numbers to a dimensionless quantity (written with units). |
| 1095 |
(Issue #54) |
| 1096 |
- Support for iter in Quantity. |
| 1097 |
(Issue #55, thanks natezb) |
| 1098 |
|
| 1099 |
|
| 1100 |
0.2.1 (2013-07-02) |
| 1101 |
------------------ |
| 1102 |
|
| 1103 |
- fix error raised while converting from a single unit to one expressed as |
| 1104 |
the relation between many. |
| 1105 |
(Issue #29) |
| 1106 |
|
| 1107 |
|
| 1108 |
0.2 (2013-05-13) |
| 1109 |
---------------- |
| 1110 |
|
| 1111 |
- support for Measurement (Quantity +/- error). |
| 1112 |
- implemented buckingham pi theorem for dimensional analysis. |
| 1113 |
- support for temperature units and temperature difference units. |
| 1114 |
- parser can infers if the user mean temperature or temperature difference. |
| 1115 |
- support for derived dimensions (e.g. [speed] = [length] / [time]). |
| 1116 |
- refactored the code into multiple files. |
| 1117 |
- refactored code to isolate definitions and converters. |
| 1118 |
- refactored formatter out of UnitParser class. |
| 1119 |
- added tox and travis config files for CI. |
| 1120 |
- comprehensive NumPy testing including almost all ufuncs. |
| 1121 |
- full NumPy support (features is not longer experimental). |
| 1122 |
- fixed bug preventing from having independent registries. |
| 1123 |
(Issue #10, thanks bwanders) |
| 1124 |
- forces real division as default for Quantities. |
| 1125 |
(Issue #7, thanks dbrnz) |
| 1126 |
- improved default unit definition file. |
| 1127 |
(Issue #13, thanks r-barnes) |
| 1128 |
- smarter parser supporting spaces as multiplications and other nice features. |
| 1129 |
(Issue #13, thanks r-barnes) |
| 1130 |
- moved testsuite inside package. |
| 1131 |
- short forms of binary prefixes, more units and fix to less than comparison. |
| 1132 |
(Issue #20, thanks muggenhor) |
| 1133 |
- pint is now zip-safe |
| 1134 |
(Issue #23, thanks muggenhor) |
| 1135 |
|
| 1136 |
|
| 1137 |
Version 0.1.3 (2013-01-07) |
| 1138 |
-------------------------- |
| 1139 |
|
| 1140 |
- abbreviated quantity string formating. |
| 1141 |
- complete Python 2.7 compatibility. |
| 1142 |
- implemented pickle support for Quantities objects. |
| 1143 |
- extended NumPy support. |
| 1144 |
- various bugfixes. |
| 1145 |
|
| 1146 |
|
| 1147 |
Version 0.1.2 (2012-08-12) |
| 1148 |
-------------------------- |
| 1149 |
|
| 1150 |
- experimenal NumPy support. |
| 1151 |
- included default unit definitions file. |
| 1152 |
(Issue #1, thanks fish2000) |
| 1153 |
- better testing. |
| 1154 |
- various bugfixes. |
| 1155 |
- fixed some units definitions. |
| 1156 |
(Issue #4, thanks craigholm) |
| 1157 |
|
| 1158 |
|
| 1159 |
Version 0.1.1 (2012-07-31) |
| 1160 |
-------------------------- |
| 1161 |
|
| 1162 |
- better packaging and installation. |
| 1163 |
|
| 1164 |
|
| 1165 |
Version 0.1 (2012-07-26) |
| 1166 |
-------------------------- |
| 1167 |
|
| 1168 |
- first public release. |