Skip to content

Commit 44f260a

Browse files
Fix bug of no gas infrastructure when no CCGT: gas implemented. (#1993)
* Fix bug of no gas infrastructure when no CCGT: gas implemented. * Add release notes.
1 parent 21477be commit 44f260a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

doc/release_notes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ Release Notes
99
Upcoming Release
1010
================
1111

12+
* Fix ConsistencyError for Links without buses when `gas_network: true`, but no `conventional_generation` (https://github.com/PyPSA/pypsa-eur/pull/1971)
13+
1214
* Fix ConsistencyError for Links without buses when `industry: true`, but no `conventional_generation` or `biomass` (https://github.com/PyPSA/pypsa-eur/pull/1971)
15+
1316
* Fix `mock_snakemake` due to breaking `snakemake` upstream API changes, i.e., requiring passing a `LoggerManager` instance (https://github.com/PyPSA/pypsa-eur/pull/1984).
1417

1518
* Added technology-data v0.13.4 (https://github.com/PyPSA/technology-data/releases/tag/v0.13.4) to data versions (https://github.com/PyPSA/pypsa-eur/pull/1985).

scripts/prepare_sector_network.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,6 +1919,16 @@ def add_storage_and_grids(
19191919
logger.info(
19201920
"Add natural gas infrastructure, incl. LNG terminals, production, storage and entry-points."
19211921
)
1922+
1923+
add_carrier_buses(
1924+
n=n,
1925+
carrier="gas",
1926+
costs=costs,
1927+
spatial=spatial,
1928+
options=options,
1929+
cf_industry=None,
1930+
)
1931+
19221932
gas_pipes = pd.read_csv(clustered_gas_network_file, index_col=0)
19231933

19241934
if options["H2_retrofit"]:

0 commit comments

Comments
 (0)