pypsa.Network.import_from_pandapower_net#
- Network.import_from_pandapower_net(net: pandapowerNet, extra_line_data: bool = False, use_pandapower_index: bool = False) None #
Import PyPSA network from pandapower net.
Importing from pandapower is still in beta; not all pandapower components are supported.
Unsupported features include: - three-winding transformers - switches - in_service status and - tap positions of transformers
- Parameters:
net (pandapower network)
extra_line_data (boolean, default: False) – if True, the line data for all parameters is imported instead of only the type
use_pandapower_index (boolean, default: False) – if True, use integer numbers which is the pandapower index standard if False, use any net.name as index (e.g. ‘Bus 1’ (str) or 1 (int))
Examples
>>> n.import_from_pandapower_net(net) OR >>> import pypsa >>> import pandapower as pp >>> import pandapower.networks as pn >>> net = pn.create_cigre_network_mv(with_der='all') >>> n = pypsa.Network() >>> n.import_from_pandapower_net(net, extra_line_data=True)