Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 16, 2024
1 parent 02fec08 commit 1875905
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2830,8 +2830,11 @@ def add_biomass(n, costs):
)

if options["bioH2"]:
name = (pd.Index(spatial.biomass.nodes) + " "
+ pd.Index(spatial.h2.nodes.str.replace(" H2", "")))
name = (
pd.Index(spatial.biomass.nodes)
+ " "
+ pd.Index(spatial.h2.nodes.str.replace(" H2", ""))
)
n.madd(
"Link",
name,
Expand All @@ -2841,16 +2844,22 @@ def add_biomass(n, costs):
bus2=spatial.co2.nodes,
bus3="co2 atmosphere",
carrier="solid biomass to hydrogen",
efficiency=costs.at['solid biomass to hydrogen', 'efficiency'],
efficiency2=costs.at['solid biomass', 'CO2 intensity'] * options["cc_fraction"],
efficiency3=-costs.at['solid biomass', 'CO2 intensity'] * options["cc_fraction"],
efficiency=costs.at["solid biomass to hydrogen", "efficiency"],
efficiency2=costs.at["solid biomass", "CO2 intensity"]
* options["cc_fraction"],
efficiency3=-costs.at["solid biomass", "CO2 intensity"]
* options["cc_fraction"],
p_nom_extendable=True,
capital_cost=costs.at['solid biomass to hydrogen', 'fixed'] * costs.at['solid biomass to hydrogen', 'efficiency']
+ costs.at['biomass CHP capture', 'fixed'] * costs.at['solid biomass', 'CO2 intensity'],
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.,
)
capital_cost=costs.at["solid biomass to hydrogen", "fixed"]
* costs.at["solid biomass to hydrogen", "efficiency"]
+ costs.at["biomass CHP capture", "fixed"]
* costs.at["solid biomass", "CO2 intensity"],
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):
Expand Down

0 comments on commit 1875905

Please sign in to comment.