powersimdata.design.compare package

Submodules

powersimdata.design.compare.generation module

powersimdata.design.compare.generation.calculate_plant_difference(plant1, plant2)[source]

Calculate the capacity differences between two plant data frames. If capacity in plant2 is larger than capacity in plant1, the return will be positive.

Parameters:
  • plant1 (pandas.DataFrame) – first plant data frame.

  • plant2 (pandas.DataFrame) – second plant data frame.

Returns:

(pandas.DataFrame) – merged data frames with a new ‘diff’ column.

powersimdata.design.compare.helpers module

powersimdata.design.compare.transmission module

powersimdata.design.compare.transmission.calculate_branch_difference(branch1, branch2)[source]

Calculate the capacity differences between two branch data frames. If capacity in branch2 is larger than capacity in branch1, the return will be positive.

Parameters:
  • branch1 (pandas.DataFrame) – first branch data frame.

  • branch2 (pandas.DataFrame) – second branch data frame.

  • difference_threshold (float/int) – drop any changes less than this value from the returned Series.

Returns:

(pandas.Series) – capacity difference between the two branch data frames.

powersimdata.design.compare.transmission.calculate_dcline_difference(grid1, grid2)[source]

Calculate capacity differences between dcline tables, and add to/from lat/lon.

Parameters:
Returns:

(pandas.DataFrame) – data frame with all indices, plus new columns: diff, from_lat, from_lon, to_lat, to_lon.

Module contents