e2nIEE / pandapower

Convenient Power System Modelling and Analysis based on PYPOWER and pandas
https://www.pandapower.org
Other
847 stars 478 forks source link

test failure: 'csc_matrix' object has no attribute #2340

Closed quant12345 closed 2 months ago

quant12345 commented 2 months ago

Feature Checklist

Issue

When testing I get multiple errors, for example:

FAILED pandapower/test/converter/test_from_ppc.py::test_to_and_from_ppc - AttributeError: 'csc_matrix' object has no attribute 'H'
FAILED pandapower/test/loadflow/test_runpp.py::test_bsfw_algorithm_with_branch_loops - AttributeError: 'csc_matrix' object has no attribute 'A'

Label

quant12345 commented 2 months ago

Figured it out because of the new scipy. In the new .A and .H attributes were removed. Works since scipy 1.13.0.

vogt31337 commented 2 months ago

@quant12345 good to know, currently we fixed the scipy version. Do you know if there is a fix to get these matrices again?

quant12345 commented 2 months ago

@quant12345 good to know, currently we fixed the scipy version. Do you know if there is a fix to get these matrices again?

@vogt31337 made PR.