pwrs.core.compare_case#

pwrs.core.compare_case.compare_case(mpc1, mpc2)[source]#

Print a column-wise comparison of two MATPOWER cases.

Loads two MATPOWER cases, compares the shared bus, generator, and branch matrices column by column, and prints the largest row-wise differences in the same style as MATPOWER’s compare_case.

Parameters:
  • mpc1 (dict or str) – First MATPOWER case struct or case name/path.

  • mpc2 (dict or str) – Second MATPOWER case struct or case name/path.

Returns:

This function prints formatted output and does not return a value.

Return type:

None