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
I would like to save the results of a time series simulation in pandapower. I am able to save the results data of tables like res_bus, res_line, etc. However, I would also like to save data regarding the success of the simulation, such as net.converged or some data from net._ppc like residuals, iterations, and mismatch. I am not sure if there are other ways to obtain variables related to the success of the simulation, like the ones mentioned above.
Here is what I am currently doing:
# Code
time_steps = list(range(0, 10))
load = pd.read_csv(root + os.path.sep + 'inputs' + os.path.sep + name, sep=';')
ds = ts.DFData(load)
load_p = ctrl.ConstControl(net, element='load', element_index=net.load.index, variable='p_mw', data_source=ds, profile_name=
[f'p_mw_{i}' for i in range(0, len(net.load))])
load_q = ctrl.ConstControl(net, element='load', element_index=net.load.index, variable='q_mvar', data_source=ds, profile_name=
[f'q_mvar_{i}' for i in range(0, len(net.load))])
ow = ts.OutputWriter(net, output_path=root + os.path.sep + 'res', output_file_type=".csv")
tables = ['res_bus', 'res_ext_grid', 'res_line', 'res_load', 'res_trafo', 'res_trafo3w']
for tt in tables:
for col in net[tt].columns:
ow.log_variable(tt, col)
ts.run_timeseries(net, time_steps=time_steps, output_writer=ow)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I would like to save the results of a time series simulation in pandapower. I am able to save the results data of tables like res_bus, res_line, etc. However, I would also like to save data regarding the success of the simulation, such as net.converged or some data from net._ppc like residuals, iterations, and mismatch. I am not sure if there are other ways to obtain variables related to the success of the simulation, like the ones mentioned above.
Here is what I am currently doing:
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions