Contingency Import and Matching#
Overview#
This project provides tools to import contingency data from PowerFactory files and match them with grid model elements. The focus is on CIM-based grid models, ensuring compatibility with PowerFactory's contingency analysis.
Modules#
1. power_factory_data_class.py#
This module is the interface pandera class to define the expected import data
2. contingency_from_file.py#
This module contains functions to: - Import contingencies from a file. - Match contingencies with grid model elements by index or name.
Main Functions#
3. power_factory_data_class.py#
This module defines schemas for validating contingency and grid model data using pandera.
Usage#
Importing Contingencies#
- Use
get_contingencies_from_fileto read contingencies from a file. - Validate the data using the
ContingencyImportSchema.
Matching Contingencies#
- Use
match_contingenciesto match contingencies with grid model elements. - Choose to match by index or name using the
match_by_nameparameter. - Validate the data using the
ContingencyMatchSchema.
Validation#
- All data is validated using
panderaschemas (ContingencyImportSchema,AllGridElementsSchema,ContingencyMatchSchema).
Known Issues#
- UCTE-based grid models have not been tested