Skip to content

Commit

Permalink
Merge pull request #287 from PyPSA/VOM-onwind
Browse files Browse the repository at this point in the history
take VOM for RES from existing
  • Loading branch information
fneum authored Nov 28, 2022
2 parents 4c8a1cb + 5b256bf commit b756ca6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/add_existing_baseyear.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
# solar utility and rooftop as well, rather take cost assumptions
# from existing network than from the cost database
capital_cost = n.generators.loc[n.generators.carrier==generator+suffix, "capital_cost"].mean()

marginal_cost = n.generators.loc[n.generators.carrier==generator+suffix, "marginal_cost"].mean()
# check if assets are already in network (e.g. for 2020)
already_build = n.generators.index.intersection(asset_i)
new_build = asset_i.difference(n.generators.index)
Expand Down Expand Up @@ -262,7 +262,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
bus=ind,
carrier=generator,
p_nom=new_capacity[ind] / len(inv_ind), # split among regions in a country
marginal_cost=costs.at[generator,'VOM'],
marginal_cost=marginal_cost,
capital_cost=capital_cost,
efficiency=costs.at[generator, 'efficiency'],
p_max_pu=p_max_pu,
Expand All @@ -281,7 +281,7 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas
bus=new_capacity.index,
carrier=generator,
p_nom=new_capacity,
marginal_cost=costs.at[generator, 'VOM'],
marginal_cost=marginal_cost,
capital_cost=capital_cost,
efficiency=costs.at[generator, 'efficiency'],
p_max_pu=p_max_pu.rename(columns=n.generators.bus),
Expand Down Expand Up @@ -520,10 +520,10 @@ def add_heating_capacities_installed_before_baseyear(n, baseyear, grouping_years
snakemake = mock_snakemake(
'add_existing_baseyear',
simpl='',
clusters="45",
clusters="37",
lv=1.0,
opts='',
sector_opts='365H-T-H-B-I-A-solar+p3-dist1',
sector_opts='800sn-T-H-B-I-A-solar+p3-dist1-co2min-1p7',
planning_horizons=2030,
)

Expand Down

0 comments on commit b756ca6

Please sign in to comment.