[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-08-16 11:42:18 +00:00
parent 02fec080ee
commit 18759053f0

View File

@ -2830,8 +2830,11 @@ def add_biomass(n, costs):
) )
if options["bioH2"]: if options["bioH2"]:
name = (pd.Index(spatial.biomass.nodes) + " " name = (
+ pd.Index(spatial.h2.nodes.str.replace(" H2", ""))) pd.Index(spatial.biomass.nodes)
+ " "
+ pd.Index(spatial.h2.nodes.str.replace(" H2", ""))
)
n.madd( n.madd(
"Link", "Link",
name, name,
@ -2841,16 +2844,22 @@ def add_biomass(n, costs):
bus2=spatial.co2.nodes, bus2=spatial.co2.nodes,
bus3="co2 atmosphere", bus3="co2 atmosphere",
carrier="solid biomass to hydrogen", carrier="solid biomass to hydrogen",
efficiency=costs.at['solid biomass to hydrogen', 'efficiency'], efficiency=costs.at["solid biomass to hydrogen", "efficiency"],
efficiency2=costs.at['solid biomass', 'CO2 intensity'] * options["cc_fraction"], efficiency2=costs.at["solid biomass", "CO2 intensity"]
efficiency3=-costs.at['solid biomass', 'CO2 intensity'] * options["cc_fraction"], * options["cc_fraction"],
efficiency3=-costs.at["solid biomass", "CO2 intensity"]
* options["cc_fraction"],
p_nom_extendable=True, p_nom_extendable=True,
capital_cost=costs.at['solid biomass to hydrogen', 'fixed'] * costs.at['solid biomass to hydrogen', 'efficiency'] capital_cost=costs.at["solid biomass to hydrogen", "fixed"]
+ costs.at['biomass CHP capture', 'fixed'] * costs.at['solid biomass', 'CO2 intensity'], * costs.at["solid biomass to hydrogen", "efficiency"]
overnight_cost=costs.at['solid biomass to hydrogen', 'investment'] * costs.at['solid biomass to hydrogen', 'efficiency'] + costs.at["biomass CHP capture", "fixed"]
+ costs.at['biomass CHP capture', 'investment'] * costs.at['solid biomass', 'CO2 intensity'], * costs.at["solid biomass", "CO2 intensity"],
marginal_cost=0., overnight_cost=costs.at["solid biomass to hydrogen", "investment"]
) * costs.at["solid biomass to hydrogen", "efficiency"]
+ costs.at["biomass CHP capture", "investment"]
* costs.at["solid biomass", "CO2 intensity"],
marginal_cost=0.0,
)
def add_industry(n, costs): def add_industry(n, costs):