pypowsybl.network.load_from_string#
- load_from_string(file_name, file_content, parameters=None, post_processors=None, reporter=None, report_node=None)[source]#
Load a network from a string. File content should be in a supported format.
- Parameters:
file_name (str) – file name
file_content (str) – file content
parameters (Dict[str, str] | None) – a dictionary of import parameters
post_processors (List[str] | None) – a list of import post processors (will be added to the ones defined by the platform config)
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:
The loaded network
- Return type: