Skip to content

Commit e9f212d

Browse files
committed
restricting network topology to interconnectors only
1 parent 3766b85 commit e9f212d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/prepare_sector_network.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ def create_network_topology(
412412
lk_attrs = n.links.columns.intersection(lk_attrs)
413413

414414
candidates = pd.concat(
415-
[n.lines[ln_attrs], n.links.loc[n.links.carrier.isin(carriers), lk_attrs]]
415+
[n.lines[ln_attrs],
416+
n.links.loc[(n.links.carrier.isin(carriers)) & (n.links.underwater_fraction > 0.1),
417+
lk_attrs]]
416418
).fillna(0)
417419

418420
# base network topology purely on location not carrier
@@ -4252,7 +4254,7 @@ def add_biomass(
42524254
transport_costs = pd.read_csv(biomass_transport_costs_file, index_col=0)
42534255
transport_costs = transport_costs.squeeze()
42544256
biomass_transport = create_network_topology(
4255-
n, "biomass transport ", bidirectional=False
4257+
n, "biomass transport ", carriers=[""], bidirectional=False
42564258
)
42574259

42584260
# costs

0 commit comments

Comments
 (0)