Skip to content

Commit

Permalink
Merge branch 'fit-for-module' into import-trial
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum committed May 12, 2023
2 parents 9b8e867 + 8f91963 commit 9ecd950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def attach_conventional_generators(
if f"conventional_{carrier}_{attr}" in conventional_inputs:
# Values affecting generators of technology k country-specific
# First map generator buses to countries; then map countries to p_max_pu
values = pd.read_csv(values, index_col=0).iloc[:, 0]
values = pd.read_csv(snakemake.input[f"conventional_{carrier}_{attr}"], index_col=0).iloc[:, 0]
bus_values = n.buses.country.map(values)
n.generators[attr].update(
n.generators.loc[idx].bus.map(bus_values).dropna()
Expand Down

0 comments on commit 9ecd950

Please sign in to comment.