restore_blocks

Contents

restore_blocks#

powerplantmatching.utils.restore_blocks(df, mode=2, config=None)#

Restore blocks of powerplants from a matched dataframe.

This function breaks down all matches. For each match separately it selects blocks from only one input data source. For this selection the following modi are available:

  1. Select the source with most number of blocks in the match

  2. Select the source with the highest reliability score

Parameters:

df (pd.DataFrame) – Matched data with not empty projectID-column. Keys of projectID must be specified in powerplantmatching.data.data_config