pwrs.core.case_info#

pwrs.core.case_info.case_info(mpc, fd, *, nargout=None)[source]#

Print structural information about a MATPOWER case.

Performs the same high-level case inspection as MATPOWER’s case_info, including connectivity analysis, island detection, and summary reporting for buses, branches, generators, loads, and DC lines.

Parameters:
  • mpc (dict or str) – MATPOWER case struct or case name/path accepted by loadcase.

  • fd (file-like or int, optional) – Output destination. 1 selects stdout.

  • nargout (int, optional) – MATLAB compatibility flag controlling returned outputs.

Returns:

Returns island groups and isolated buses when outputs are requested; otherwise prints the report and returns None.

Return type:

tuple or None