enable electrobiofuels also without biomass spatially resolved

This commit is contained in:
lisazeyen 2024-08-02 14:05:42 +02:00
parent 8efa832f95
commit 8bfca9ce69

View File

@ -2514,13 +2514,14 @@ def add_biomass(n, costs):
# Electrobiofuels (BtL with hydrogen addition to make more use of biogenic carbon). # Electrobiofuels (BtL with hydrogen addition to make more use of biogenic carbon).
# Combination of efuels and biomass to liquid, both based on Fischer-Tropsch. # Combination of efuels and biomass to liquid, both based on Fischer-Tropsch.
# Experimental version - use with caution # Experimental version - use with caution
if options["electrobiofuels"] and options.get( if options["electrobiofuels"]:
"biomass_spatial", options["biomass_transport"]
):
efuel_scale_factor = costs.at["BtL", "C stored"] efuel_scale_factor = costs.at["BtL", "C stored"]
name = (pd.Index(spatial.biomass.nodes) + " "
+ pd.Index(spatial.h2.nodes.str.replace(" H2", "")))
n.madd( n.madd(
"Link", "Link",
spatial.biomass.nodes, name,
suffix=" electrobiofuels", suffix=" electrobiofuels",
bus0=spatial.biomass.nodes, bus0=spatial.biomass.nodes,
bus1=spatial.oil.nodes, bus1=spatial.oil.nodes,