pypowsybl.network.Network.save_to_binary_buffer#
- Network.save_to_binary_buffer(format='XIIDM', parameters=None, reporter=None, report_node=None)[source]#
Save a network to a binary buffer using a specified format. In the current implementation, whatever the specified format is (so a format creating a single file or a format creating multiple files), the created binary buffer is a zip file.
- 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 BytesIO data buffer representing this network
- Return type:
BytesIO