Skip to content

Commit

Permalink
Merge branch 'master' into fix_msw
Browse files Browse the repository at this point in the history
  • Loading branch information
p-glaum authored Sep 4, 2024
2 parents 150157f + aa79ca0 commit e940e4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Release Notes
.. Upcoming Release
.. ================
* bugfix: The oil generator was incorrectly dropped when the config `oil_refining_emissions` was greater than zero. This was the default behaviour in 0.12.0.

PyPSA-Eur 0.12.0 (30th August 2024)
===================================

Expand Down
18 changes: 8 additions & 10 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,16 +604,14 @@ def add_carrier_buses(n, carrier, nodes=None):

suffix = " primary"

else:

n.madd(
"Generator",
nodes + suffix,
bus=nodes + suffix,
p_nom_extendable=True,
carrier=carrier + suffix,
marginal_cost=costs.at[carrier, "fuel"],
)
n.madd(
"Generator",
nodes + suffix,
bus=nodes + suffix,
p_nom_extendable=True,
carrier=carrier + suffix,
marginal_cost=costs.at[carrier, "fuel"],
)


# TODO: PyPSA-Eur merge issue
Expand Down

0 comments on commit e940e4b

Please sign in to comment.