Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare_sector_network: fix municipal waste transport links #1250

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
prepare_sector_network: fix municipal waste transport links
  • Loading branch information
p-glaum committed Aug 30, 2024
commit ca67e3d927e97ff31d8b347d3c90308ec2a41a77
10 changes: 6 additions & 4 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2595,13 +2595,15 @@ def add_biomass(n, costs):
if options["municipal_solid_waste"]:
n.madd(
"Link",
biomass_transport.index,
bus0=biomass_transport.bus0 + " municipal solid waste",
bus1=biomass_transport.bus1 + " municipal solid waste",
biomass_transport.index + " municipal solid waste",
bus0=biomass_transport.bus0.values + " municipal solid waste",
bus1=biomass_transport.bus1.values + " municipal solid waste",
p_nom_extendable=False,
p_nom=5e4,
length=biomass_transport.length.values,
marginal_cost=biomass_transport.costs * biomass_transport.length.values,
marginal_cost=(
biomass_transport.costs * biomass_transport.length
).values,
carrier="municipal solid waste transport",
)

Expand Down
Loading