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 11, 2023
1 parent 0f092de commit 681943b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def H2_export_yearly_constraint(n):
]

if include_country_load:
elec_efficiency = n.links.filter(like='Electrolysis', axis=0).loc[:,"efficiency"].mean()
elec_efficiency = (
n.links.filter(like="Electrolysis", axis=0).loc[:, "efficiency"].mean()
)
rhs = (
h2_export * (1 / elec_efficiency) + load
) # 0.7 is approximation of electrloyzer efficiency # TODO obtain value from network
Expand Down

0 comments on commit 681943b

Please sign in to comment.