You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse the tutorials and tests for usefull code snippets and examples of use
Reproduced the issue after updating with pip install --upgrade pandapower (or git pull)
Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
importpandapowerasppimportpandapower.networksaspnimportnumpyasnpnet=pn.case1118()
# after a dc powerflow, q_mvar is nan, which is correctpp.rundcpp(net)
assertnotnp.isfinite(net.res_load["q_mvar"]).any()
# then I run an AC powerflow, q_mvar is finite for all, which is again correctpp.runpp(net)
assertnp.isfinite(net.res_load["q_mvar"]).all()
res_load=1.*net.res_load["q_mvar"]
# I run a second DC powerflow after a the AC one, results from AC are keptpp.rundcpp(net)
print(f"max diff between AC and DC (should be Nan): {(net.res_load['q_mvar'] -res_load).max()}")
assertnotnp.isfinite(net.res_load["q_mvar"]).any()
Issue Description and Traceback
The first DC powerflow (and by extension as long as no AC powerflow are fun) is correct (nan for q)
But when an AC powerflow is run, some results from this computation are kept for the DC powerflow. Which lead some res tables (at least res_load and res_gen, but probably more) to be incorrect.
Expected Behavior
In DC, q should be 0 (or NaN) in the result tables as far as I understand DC computation :-)
Installed Versions
I tested it with pandapower 3. and pandapower 2.xx and behaviour is still the same, not sure it's relevant.
Bug report checklis
Searched the issues page for similar reports
Read the relevant sections of the documentation
Browse the tutorials and tests for usefull code snippets and examples of use
Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
)Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
Issue Description and Traceback
The first DC powerflow (and by extension as long as no AC powerflow are fun) is correct (nan for q)
But when an AC powerflow is run, some results from this computation are kept for the DC powerflow. Which lead some res tables (at least res_load and res_gen, but probably more) to be incorrect.
Expected Behavior
In DC, q should be 0 (or NaN) in the result tables as far as I understand DC computation :-)
Installed Versions
I tested it with pandapower 3. and pandapower 2.xx and behaviour is still the same, not sure it's relevant.
However, here are the full venv used:
certifi==2025.1.31
charset-normalizer==3.4.1
deepdiff==8.3.0
geojson==3.2.0
-e git+https://github.com/bdonnot/grid2op.git@b1dde84b0920299f0487388f55a98eaf02321a69#egg=Grid2Op
idna==3.10
-e git+https://github.com/grid2op/lightsim2grid.git@0a03640974d3764e4e5aa2c49b03a9ed0300bc99#egg=LightSim2Grid
lxml==5.3.1
networkx==3.4.2
numpy==2.2.3
orderly-set==5.3.0
packaging==24.2
pandapower==3.0.0
pandas==2.2.3
pybind11==2.13.6
python-dateutil==2.9.0.post0
pytz==2025.1
requests==2.32.3
scipy==1.13.1
setuptools==76.0.0
six==1.17.0
tqdm==4.67.1
typing_extensions==4.12.2
tzdata==2025.1
urllib3==2.3.0
Label
The text was updated successfully, but these errors were encountered: