Container#
- class GpfCase(*, ic=0, sbase=100.0, rev=33, xfrrat=0, nxfrat=0, basfrq=60.0, title1='', title2='', buses=<factory>, loads=<factory>, generators=<factory>, gen_costs=<factory>, branches=<factory>, transformers=<factory>, system_switching_devices=<factory>, switching_device_rating_sets=<factory>, voltage_droop_controls=<factory>, load_types=<factory>, interfaces=<factory>, interface_elements=<factory>, fixed_shunts=<factory>, areas=<factory>, zones=<factory>, owners=<factory>, switched_shunts=<factory>, inter_areas=<factory>, two_terminal_dc=<factory>, vsc_dc_lines=<factory>, multi_terminal_dc=<factory>, facts_devices=<factory>, multi_section_lines=<factory>, impedance_corrections=<factory>, induction_machines=<factory>, substations=<factory>, gne_devices=<factory>, seq_machines=<factory>, seq_loads=<factory>, seq_branches=<factory>, seq_mutuals=<factory>, seq_transformers=<factory>, seq_switched_shunts=<factory>, seq_fixed_shunts=<factory>, seq_induction_machines=<factory>, seq_source_characteristics=<factory>, seq_converter_sources=<factory>, seq_options=None, iec_machines=<factory>, iec_transformer_mva=<factory>, iec_induction_machines=<factory>, iec_wind_async=<factory>, iec_wind_doubly_fed=<factory>, iec_full_converters=<factory>, rating_definitions=<factory>, system_wide=None, swd_rating_definitions=<factory>, system_wide_extras=<factory>)#
Represent a power-system case in a format-independent data model.
The header fields describe the system base and source revision. The record lists contain buses, equipment, controls, and optional sequence data. Parsers preserve source data without running full schema validation. Call
validate_schema()when the workflow requires that check.- property rating_names#
Return the label for each branch-rating slot.
- property sequence#
Return a grouped view of the attached sequence-network data.
- property source_format#
Return the input format the case was parsed from.
- property parse_findings#
Return data-loss and substitution findings from the parser.
- get_bus(ibus)#
Return a bus by number or
Nonewhen it is absent.- Parameters:
ibus -- Bus number.
- summary()#
Return the case revision, base, and primary record counts.
- validate_schema()#
Validate all case records against their field constraints.
Parsing skips validation for speed; call this method afterward to validate the records if needed.
- Raises:
ValidationError -- If any record fails schema validation.