PyPOWER Pull Request #90

7 views
Skip to first unread message

David Chassin

unread,
Jun 13, 2025, 4:23:52 PMJun 13
to pyp...@googlegroups.com, Bennet E Meyers-Im
Dear PYPOWER community:

I’ve put together Pull Request #90 to address some issues that emerged while integrating PYPOWER with the GridLAB-D module in Arras Energy. In principle these changes should not affect anyone assuming there are no errors introduced by the changes. Since this PR is likely affect users of the PYPOWER package I'm soliciting input from the community before proceeding.


Among the changes are the following that may be of interest:

1. Several cases in the `pypower` did not work “out of the box”. These failures were fixed with updates to 15 modules in the `pypower` folder. These changes include the following 
a. Instances of `Inf` and `Nan` were changes to `inf` and `nan` due to the formers’ deprecation in Numpy.
b. `cpf_p_jac.py` and `polycost.py` now return arrays instead of scalars, as required by Numpy for sparse matrix multiplications.
c. Instances of `any(x)` where `x` is an array were converted to `x.any()` to fix exceptions Numpy was raising when the former was used.
2. The `requirements.txt` was updated to support python3.{10,11,12}. Python3.8 and older are no longer support due to their end-of-life status. Python3.9 is imminent end-of-life support, so we’re just getting ahead of that one.
3. The `tests` folder has been added with a `test_cases.py` script to run a comprehensive test of `tox` tests and all the cases found in the `pypower` folder.
4. A `github` actions YML has been added for the `master` branch to run the new tests on currently support ubuntu and macOS runners. If a test fails, a downloadable copy of the `tests` folder is created in the GitHub actions artifacts.
5. The version has been updated to 5.1.19. I don’t know if these changes warrant changing that to 5.2.0. I leave that to you all to decide.
6. The README.rst file has been updated.
7. Minor changes were made to `.gitignore`

If you have any questions or comments, please add them to the PR review. As always, feel free to contact me at the email below if you prefer to have an off-line conversation.

Best regards,
Dave
_____________________________
David P. Chassin, PhD

Eudoxys Sciences LLC
7443 87th Dr NE
Marysville, WA 98270 (USA)
www.eudoxys.com
1+509-851-2139



Reply all
Reply to author
Forward
0 new messages