| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Python's 3.9 compatible typing annotations | Hernan Grecco | 2023-05-14 | 15 | -94/+118 |
| | | |||||
| * | Better SharedRegistryObjects creation | Hernan Grecco | 2023-05-11 | 1 | -5/+5 |
| | | |||||
| * | Fix imports for Python 3.9 | Hernan Grecco | 2023-05-11 | 1 | -4/+5 |
| | | |||||
| * | More typing improvements | Hernan Grecco | 2023-05-11 | 1 | -5/+5 |
| | | |||||
| * | Typing related fixes | Hernan Grecco | 2023-05-09 | 7 | -18/+19 |
| | | |||||
| * | Remove deprecated usage in docs and fix introduced bug during refactoring. | Hernan Grecco | 2023-05-05 | 1 | -2/+1 |
| | | |||||
| * | Remove conversion to string in DimensionalityError | Hernan Grecco | 2023-05-05 | 1 | -1/+1 |
| | | |||||
| * | Fixed Subscripted generics cannot be used with class and instance checks | Hernan Grecco | 2023-05-05 | 1 | -1/+1 |
| | | |||||
| * | Large commit to make Pint more typing friendly | Hernan Grecco | 2023-05-05 | 31 | -734/+1193 |
| | | | | | | | | | | | | | | | | | | | | | | In this very large commit we tackle a few aspects of Pint that makes it difficult to do static typing. 1. Dynamic classes became static: Quantity and Unit are now (for the most part) static classes with a static inheritance. This allows mypy/pylance and other type checker to properly inspect them. 2. Added types through out all the code. (WIP) 3. Refactor minor parts of the code to make it more typing homogeneous. Catch a few potential bugs in the way. 4. Add several TODOs that need to be addressed in 0.23 5. Moved some group and system and context code out of the PlainRegistry 6. Moved certain specialized methods out of the PlainRegistry. | ||||
| * | Run pyupgrade --py39-plus | Hernan Grecco | 2023-05-01 | 6 | -6/+9 |
| | | |||||
| * | Typing improvements | Hernan Grecco | 2023-05-01 | 11 | -101/+131 |
| | | | | | | | | | | | | While there is still a lot of work to do (mainly in Registry, Quantity, Unit), this large PR makes several changes all around the code. There has not been any intended functional change, but certain typing improvements required code minor code refactoring to streamline input and output types of functions. An important experimental idea is the PintScalar and PintArray protocols, and Magnitude type. This is to overcome the lack of a proper numerical hierarchy in Python. | ||||
| * | Reworked the Quantity, Unit, Measurement, Group and System class to be ↵ | Hernan Grecco | 2023-04-30 | 15 | -61/+48 |
| | | | | | static to ease with typing | ||||
| * | Run pyupgrade --py39-plus in all files except _vendor (again) | Hernan Grecco | 2023-04-29 | 2 | -2/+2 |
| | | |||||
| * | Run refurb --python-version 3.9 in code | Hernan Grecco | 2023-04-29 | 9 | -73/+73 |
| | | |||||
| * | Run pyupgrade --py39-plus in all files except _vendor | Hernan Grecco | 2023-04-29 | 16 | -147/+121 |
| | | |||||
| * | Remove deprecated use_decimal | Hernan Grecco | 2023-04-29 | 1 | -28/+2 |
| | | |||||
| * | Merge pull request #1594 from dopplershift/fix-trapz-temp | Hernan Grecco | 2023-04-29 | 1 | -3/+56 |
| |\ | | | | | Properly handle offset units for trapz | ||||
| | * | Fix up dot/cross wrapper for non-multiplicative units | Ryan May | 2023-04-27 | 1 | -2/+25 |
| | | | |||||
| | * | Properly handle offset units for trapz (Fixes #1593) | Ryan May | 2023-04-27 | 1 | -2/+32 |
| | | | |||||
| * | | Merge pull request #1608 from dopplershift/fix-1584 | Hernan Grecco | 2023-04-29 | 1 | -1/+6 |
| |\ \ | | | | | | | Fix setitem with a masked array with multiple items (Fixes #1584) | ||||
| | * \ | Merge branch 'master' into fix-1584 | Ryan May | 2022-11-28 | 19 | -796/+671 |
| | |\ \ | |||||
| | * | | | Fix setitem with a masked array with multiple items (Fixes #1584) | Ryan May | 2022-10-14 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | This was incorrectly passing through some non-masked values. | ||||
| * | | | | Honor non_int_type when dividing (fix bug). | Hernan Grecco | 2023-04-28 | 1 | -2/+2 |
| | | | | | |||||
| * | | | | Honor non_int_type when dividing. | Hernan Grecco | 2023-04-28 | 2 | -3/+13 |
| | |_|/ |/| | | |||||
| * | | | Honor non_int_type when a unit without a magnitude is given as string. | Hernan Grecco | 2023-04-27 | 1 | -3/+3 |
| | | | | | | | | | | | | | Close #1505 | ||||
| * | | | Fix get_compatible_units for dynamically add units/dimensions | Hernan Grecco | 2023-04-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | Close #1725 | ||||
| * | | | Fixed pr/1574 conflicts | Hernan Grecco | 2023-04-25 | 2 | -0/+232 |
| |\ \ \ | |||||
| | * | | | Silence verbose mip output | blewis2 | 2022-09-23 | 1 | -0/+1 |
| | | | | | |||||
| | * | | | Fix pre-commit problems | blewis2 | 2022-08-30 | 1 | -53/+72 |
| | | | | | |||||
| | * | | | Add to_preferred | blewis2 | 2022-08-30 | 2 | -0/+213 |
| | | | | | |||||
| * | | | | Merge branch 'master' into master | Hernan Grecco | 2023-04-25 | 19 | -56/+28 |
| |\ \ \ \ | |||||
| | * \ \ \ | Merge branch 'master' into patch-type-imports | Hernan Grecco | 2023-04-24 | 17 | -46/+16 |
| | |\ \ \ \ | |||||
| | | * | | | | Run pre-commit run --all-files . Mostly removed empty lines | Hernan | 2023-04-24 | 16 | -24/+0 |
| | | | | | | | |||||
| | | * | | | | Merge branch 'master' into fix-1658 | Hernan Grecco | 2023-04-24 | 3 | -20/+17 |
| | | |\ \ \ \ | |||||
| | | | * \ \ \ | Merge pull request #1741 from keewis/fix-full_like | Hernan Grecco | 2023-04-24 | 1 | -9/+3 |
| | | | |\ \ \ \ | | | | | | | | | | | | | | | | | use `**kwargs` to pass along additional arguments to `ones_like` | ||||
| | | | | * | | | | use **kwargs to pass along additional arguments to `ones_like` | Justus Magin | 2023-04-14 | 1 | -9/+3 |
| | | | | | | | | | |||||
| | | | * | | | | | Merge pull request #1703 from RemDelaporteMathurin/expose_matplotlib_formatter | Hernan Grecco | 2023-04-24 | 1 | -0/+4 |
| | | | |\ \ \ \ \ | | | | |/ / / / | | | |/| | | | | Expose matplotlib formatter | ||||
| | | | | * | | | | Added mpl_formatter attribute to PlainRegistry | RemDelaporteMathurin | 2023-01-20 | 1 | -0/+4 |
| | | | | | | | | | |||||
| | | | * | | | | | Support numpy delete (#1699) | Dennis Göries | 2023-03-23 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support numpy delete --------- Co-authored-by: Jules Chéron <43635101+jules-ch@users.noreply.github.com> | ||||
| | | | * | | | | | Merge pull request #1722 from dopplershift/fix-dask | Jules Chéron | 2023-03-22 | 1 | -11/+3 |
| | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | Fix __dask_postcompute__() to better preserve type | ||||
| | | | | * | | | | | Fix __dask_postcompute__() to better preserve type | Ryan May | 2023-03-08 | 1 | -11/+3 |
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Unidata/MetPy#2945, a call to dask's .compute() was causing the resulting type to be a different Quantity() variant (from pint.util rather than the parent registry), which resulted in isinstance() failing. This changes things to use the appropriate type from `self` rather than hard-coded class names. | ||||
| | | | * | | | | | add a override for `round` | Justus Magin | 2023-03-07 | 1 | -0/+1 |
| | | | | | | | | | |||||
| | | | * | | | | | add `min` and `max` to the array function overrides | Justus Magin | 2023-03-07 | 1 | -0/+2 |
| | | | |/ / / / | |||||
| | | * | | | | | Fix unit check with `atol` using np.allclose. | Jules Chéron | 2022-11-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1658 | ||||
| | * | | | | | | appease linters | Austin Orr | 2022-12-20 | 2 | -2/+5 |
| | | | | | | | | |||||
| | * | | | | | | patch imports during type check | Austin Orr | 2022-12-20 | 6 | -11/+10 |
| | | |/ / / / | |/| | | | | |||||
| * | | | | | | Remove deprecated `alen` function from numpy_func | Ty Balduf | 2022-12-13 | 1 | -1/+0 |
| |/ / / / / | |||||
| * | | | | | Merge branch 'master' into fix1277 | Jules Chéron | 2022-11-28 | 1 | -0/+1 |
| |\ \ \ \ \ | | |_|_|/ | |/| | | | |||||
| | * | | | | Add positive ufunc (#1663) | andrewgsavage | 2022-11-28 | 1 | -0/+1 |
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for numpy positive ufunc - Update CHANGES - Add test for `positive` Co-authored-by: Jules Chéron <43635101+jules-ch@users.noreply.github.com> | ||||
| * | | | | Add default preprocessor to support % symbol | Carlos Pascual | 2022-11-23 | 1 | -0/+2 |
| |/ / / | | | | | | | | | | | | | Add a preprocessor to replace "%" by " percent " in order to avoid eval interpreting `%` as an operator. | ||||
