pypowsybl.network.Network.validate

Network.validate(report_node=None)[source]

Validate the network.

If no report_node is defined, the validation will raise an exception if any check is not consistent with the configured minimum validation level. If report_node is defined, the validation will not raise an exception and populate the report_node with all the validation results.

Returns:

the computed ValidationLevel, which may be higher than the configured minimum level.

Raises:

pypowsybl.PyPowsyblError – if any validation check is not consistent with the configured minimum validation level (and no report_node is defined).

Parameters:

report_node (ReportNode | None)

Return type:

pypowsybl._pypowsybl.ValidationLevel