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 Sep 16, 2024
1 parent 18efa55 commit 0239510
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,9 @@ def add_industry(n, costs):
)

p_set_methanol = (
industrial_demand.loc[(nodes, sectors_b), "methanol"].rename(lambda x: x + " industry methanol")
industrial_demand.loc[(nodes, sectors_b), "methanol"].rename(
lambda x: x + " industry methanol"
)
/ nhours
)

Expand Down Expand Up @@ -3803,7 +3805,9 @@ def add_industry(n, costs):
# some CO2 from naphtha are process emissions from steam cracker
# rest of CO2 released to atmosphere either in waste-to-energy or decay
process_co2_per_naphtha = (
industrial_demand.loc[(nodes, sectors_b), "process emission from feedstock"].sum()
industrial_demand.loc[
(nodes, sectors_b), "process emission from feedstock"
].sum()
/ industrial_demand.loc[(nodes, sectors_b), "naphtha"].sum()
)
emitted_co2_per_naphtha = costs.at["oil", "CO2 intensity"] - process_co2_per_naphtha
Expand Down

0 comments on commit 0239510

Please sign in to comment.