Open SteffenMeinecke opened 2 months ago
case9.json
Attached is a case9 json file with net.bus_geodata
of a former pp version. Using the following code, I don't see the expected output. @KS-HTK @vogt31337 shouldn't this be fixed by above PR merged?
import pandapower as pp
net = pp.from_json(sm.pjoin(sm.desktop, "case9.json"))
if bus_geodata_exists := "bus_geodata" in net.keys():
print(net.bus_geodata)
print("net.bus_geodata should not exist anymore.")
if net_bus_geo_is_all_nan := net.bus.geo.isnull().all():
print("Instead, net.bus.geo is all NaN.")
if not bus_geodata_exists and not net_bus_geo_is_all_nan:
print("Bus geo data seems to be converted to the current format. Please ensures this also for net.line.geo.")
[Uploading v2.14.6_net.json…]()
Bug report checklis
[X] Searched the issues page for similar reports
[X] Read the relevant sections of the documentation
[X] Browse the tutorials and tests for usefull code snippets and examples of use
[X] Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
)[X] Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
Issue Description and Traceback
convert_format() needs to be extended.
Expected Behavior
geo data should be converted to the new columns
net.bus.geo
andnet.line.geo
. Instead the data still is in the old dataframes bus_geodata and line_geodata.Installed Versions
Label