There are some inconsistencies with element columns of new features.
My proposal is that columns should be either (1) mandatory (for power flow) or (2) optional.
If (1), columns should be available in pp.create_empty_network(), after convert_format() and thus also in the nets received from pandapower.networks.
If (2), columns shouldn't be in pp.create_empty_network() and shouldn't be added by any create function if no such parameters are passed.
However, as far as I observed,
net.trafo.pt_percent and net.trafo.oltc are created within the create function without passed data
net.gen.power_station_trafo is availble after pp.create_empty_network() but not after convert_format().
Maybe there are some more inconsistencies.
Generally, a helper function that ensures necessary columns and correct dtypes depending on the type of calculation (power flow, optimal power flow, short-circuit, ...) would be great.
There are some inconsistencies with element columns of new features. My proposal is that columns should be either (1) mandatory (for power flow) or (2) optional. If (1), columns should be available in
pp.create_empty_network()
, afterconvert_format()
and thus also in the nets received frompandapower.networks
. If (2), columns shouldn't be inpp.create_empty_network()
and shouldn't be added by anycreate
function if no such parameters are passed.However, as far as I observed,
net.trafo.pt_percent
andnet.trafo.oltc
are created within the create function without passed datanet.gen.power_station_trafo
is availble afterpp.create_empty_network()
but not afterconvert_format()
.Maybe there are some more inconsistencies. Generally, a helper function that ensures necessary columns and correct dtypes depending on the type of calculation (power flow, optimal power flow, short-circuit, ...) would be great.