pypowsybl.network.Network.save#
- Network.save(file, format='XIIDM', parameters=None, reporter=None, report_node=None)[source]#
Save a network to a file using the specified format.
Basic compression formats are also supported: for example if file name ends with ‘.gz’, the resulting files will be gzipped.
- Parameters:
format (str) – format to save the network, 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)
- Return type:
None
Examples
Various usage examples:
network.save('network.xiidm') network.save('network.xiidm.gz') # produces a gzipped file network.save('/path/to/network.uct', format='UCTE')