rwl / PYPOWER

Port of MATPOWER to Python
http://rwl.github.io/PYPOWER/api/
Other
329 stars 110 forks source link

Missing astype(int) #50

Open kasparm opened 6 years ago

kasparm commented 6 years ago

https://github.com/rwl/PYPOWER/blob/2b99f9f0db56e579a67cb449da9795eee8cc6288/pypower/ext2int.py#L112

Should be shape=(max(ppc["bus"][:, BUS_I]).astype(int) + 1, 1))

temcdrm commented 6 years ago

This allows pf and opf to solve with SciPy 1.0.1 or 1.1.0. However, we get some 0.00 bus voltage magnitudes, and "inf" or "nan" in the branch losses.