pypowsybl.network.Network.save_to_string#

Network.save_to_string(format='XIIDM', parameters=None, reporter=None, report_node=None)[source]#

Save a network to a string using a specified format.

Parameters:
  • format (str) – format to export, only support mono file type, defaults to ‘XIIDM’

  • parameters (Dict[str, str] | None) – a dictionary of export parameters

  • reporter (ReportNode | None) – deprecated, use report_node instead

  • report_node (ReportNode | None) – the reporter to be used to create an execution report, default is None (no report)

Returns:

A string representing this network

Return type:

str