pypowsybl.network.load_from_string¶
- load_from_string(file_name, file_content, parameters=None, post_processors=None, reporter=None, report_node=None, allow_variant_multi_thread_access=False)[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)
allow_variant_multi_thread_access (bool) – allow multi-thread access to variant (default: False)
- Returns:
The loaded network
- Return type: