Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improved documentation about extending the registry | Hernan Grecco | 2023-05-16 | 1 | -9/+14 |
| | |||||
* | Python's 3.9 compatible typing annotations | Hernan Grecco | 2023-05-14 | 26 | -136/+167 |
| | |||||
* | Merge pull request #1777 from coroa/extend-upcast-type-names | Hernan Grecco | 2023-05-12 | 1 | -2/+2 |
|\ | | | | | Extend upcast_type_names with fully qualified names | ||||
| * | Fix upcast_type_names | Jonas Hoersch | 2023-05-12 | 1 | -2/+2 |
| | | |||||
* | | Mark xfail certain ↵ | Hernan Grecco | 2023-05-12 | 1 | -1/+5 |
|/ | | | | test_compat_downcast.py::test_array_quantity_creation_by_multiplication | ||||
* | Moved Pint downtream Projects | Hernan Grecco | 2023-05-12 | 1 | -17/+0 |
| | |||||
* | Started downstream status page | Hernan Grecco | 2023-05-12 | 1 | -0/+17 |
| | |||||
* | SharedObject module should be | Hernan Grecco | 2023-05-11 | 1 | -1/+1 |
| | |||||
* | Better SharedRegistryObjects creation | Hernan Grecco | 2023-05-11 | 3 | -6/+17 |
| | |||||
* | Remove unnecessary import in util | Hernan Grecco | 2023-05-11 | 1 | -2/+2 |
| | |||||
* | Fix imports for Python 3.9 | Hernan Grecco | 2023-05-11 | 2 | -5/+7 |
| | |||||
* | More typing improvements | Hernan Grecco | 2023-05-11 | 3 | -8/+9 |
| | |||||
* | Fix ruff fuck-up | Hernan Grecco | 2023-05-09 | 1 | -6/+7 |
| | |||||
* | Typing related fixes | Hernan Grecco | 2023-05-09 | 16 | -107/+77 |
| | |||||
* | 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 | 40 | -833/+1368 |
| | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Fix 3.9 support. TypeAlias is supported in 3.10+ | Hernan Grecco | 2023-05-01 | 1 | -3/+6 |
| | |||||
* | Fix 3.9 support. Protocol do not support | | Hernan Grecco | 2023-05-01 | 1 | -2/+3 |
| | |||||
* | Run pyupgrade --py39-plus | Hernan Grecco | 2023-05-01 | 9 | -10/+14 |
| | |||||
* | Typing improvements | Hernan Grecco | 2023-05-01 | 33 | -490/+905 |
| | | | | | | | | | | | 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 | 17 | -89/+80 |
| | | | | static to ease with typing | ||||
* | Run pyupgrade --py39-plus in all files except _vendor (again) | Hernan Grecco | 2023-04-29 | 4 | -8/+8 |
| | |||||
* | Run refurb --python-version 3.9 in code | Hernan Grecco | 2023-04-29 | 15 | -107/+101 |
| | |||||
* | Run refurb --python-version 3.9 in pint/testsuite | Hernan Grecco | 2023-04-29 | 16 | -65/+60 |
| | |||||
* | Run pyupgrade --py39-plus in all files except _vendor | Hernan Grecco | 2023-04-29 | 38 | -235/+205 |
| | |||||
* | Remove deprecated use_decimal | Hernan Grecco | 2023-04-29 | 3 | -39/+5 |
| | |||||
* | Apply NEP-29: Pint now requires Python 3.9+ and NumPy 1.21+ | Hernan Grecco | 2023-04-29 | 1 | -3/+1 |
| | |||||
* | fix(upcast): Fix upcast function | Jules Chéron | 2023-04-29 | 1 | -7/+7 |
| | |||||
* | Merge pull request #1594 from dopplershift/fix-trapz-temp | Hernan Grecco | 2023-04-29 | 2 | -3/+120 |
|\ | | | | | Properly handle offset units for trapz | ||||
| * | Fix up dot/cross wrapper for non-multiplicative units | Ryan May | 2023-04-27 | 2 | -2/+67 |
| | | |||||
| * | Properly handle offset units for trapz (Fixes #1593) | Ryan May | 2023-04-27 | 2 | -2/+54 |
| | | |||||
* | | Merge pull request #1760 from jules-ch/test-all-close | Hernan Grecco | 2023-04-29 | 1 | -0/+9 |
|\ \ | | | | | | | fix(test): Add tests for all close with nan and atol default | ||||
| * | | fix(test): Add tests for all close with nan and atol default | Jules Chéron | 2023-04-29 | 1 | -0/+9 |
| |/ | |||||
* | | Merge pull request #1608 from dopplershift/fix-1584 | Hernan Grecco | 2023-04-29 | 2 | -2/+23 |
|\ \ | | | | | | | Fix setitem with a masked array with multiple items (Fixes #1584) | ||||
| * \ | Merge branch 'master' into fix-1584 | Ryan May | 2022-11-28 | 50 | -1539/+3598 |
| |\ \ | |||||
| * | | | Fix setitem with a masked array with multiple items (Fixes #1584) | Ryan May | 2022-10-14 | 2 | -2/+23 |
| | | | | | | | | | | | | | | | | 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 | 2 | -3/+15 |
| | | | | | | | | | | | | Close #1505 | ||||
* | | | Fixed pint-convert | Hernan Grecco | 2023-04-27 | 1 | -16/+40 |
| | | | | | | | | | | | | Close #1646 | ||||
* | | | Fix get_compatible_units for dynamically add units/dimensions | Hernan Grecco | 2023-04-26 | 2 | -1/+6 |
| | | | | | | | | | | | | Close #1725 | ||||
* | | | Fixed pr/1574 conflicts | Hernan Grecco | 2023-04-25 | 5 | -0/+294 |
|\ \ \ | |||||
| * | | | Silence verbose mip output | blewis2 | 2022-09-23 | 1 | -0/+1 |
| | | | | |||||
| * | | | Fix pre-commit problems | blewis2 | 2022-08-30 | 4 | -69/+95 |
| | | | | |||||
| * | | | Add to_preferred | blewis2 | 2022-08-30 | 5 | -0/+269 |
| | | | | |||||
* | | | | Merge branch 'pr/1712' | Hernan Grecco | 2023-04-25 | 2 | -1/+45 |
|\ \ \ \ | |||||
| * \ \ \ | Merge branch 'master' into improve-latex-escaping | Hernan Grecco | 2023-04-24 | 13 | -29/+158 |
| |\ \ \ \ | |||||
| * | | | | | Add test for siunitx formatting | Yann Büchau | 2023-02-09 | 1 | -1/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - works fine for %-sign, however not really for the weird characters - what do we even want the weird characters to be in siunitx mode? |