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 10, 2023
1 parent c21a193 commit b3bd5d3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ def add_hydrogen(n, costs):
h2_links = pd.DataFrame(columns=attrs)

candidates = pd.concat(
{"lines": n.lines[attrs], "links": n.links.loc[n.links.carrier == "DC", attrs]}
{
"lines": n.lines[attrs],
"links": n.links.loc[n.links.carrier == "DC", attrs],
}
)

for candidate in candidates.index:
Expand Down Expand Up @@ -799,7 +802,7 @@ def add_aviation(n, cost):
airports = pd.concat([airports, ind])

airports = airports.fillna(0)

airports = airports.groupby(airports.index).sum()
n.madd(
"Load",
Expand Down Expand Up @@ -1822,7 +1825,9 @@ def add_heat(n, costs):
- costs.at["gas", "CO2 intensity"]
* (
costs.at["biomass CHP capture", "electricity-input"]
+ costs.at["biomass CHP capture", "compression-electricity-input"]
+ costs.at[
"biomass CHP capture", "compression-electricity-input"
]
),
efficiency2=costs.at["central gas CHP", "efficiency"]
/ costs.at["central gas CHP", "c_b"]
Expand Down

0 comments on commit b3bd5d3

Please sign in to comment.