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 d433fdd commit aab1dd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion scripts/build_industrial_production_per_country.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ def separate_basic_chemicals(demand, year):
/ params["basic_chemicals_without_NH3_production_today"]
/ 1e3
)
demand["HVC"] = sum(params["HVC_production_today"].values()) * 1e3 * distribution_key
demand["HVC"] = (
sum(params["HVC_production_today"].values()) * 1e3 * distribution_key
)
demand["Chlorine"] = params["chlorine_production_today"] * 1e3 * distribution_key
demand["Methanol"] = params["methanol_production_today"] * 1e3 * distribution_key

Expand Down
10 changes: 6 additions & 4 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4315,10 +4315,12 @@ def add_endogenous_hvdc_import_options(n, cost_factor=1.0):
.to_pandas()
)

exporters_iso2 = [e.split("-")[0] for e in cf["exporters"]] # noqa
exporters = country_shapes.query(
"ISO_A2 in @exporters_iso2"
).set_index("ISO_A2").representative_point()
exporters_iso2 = [e.split("-")[0] for e in cf["exporters"]] # noqa
exporters = (
country_shapes.query("ISO_A2 in @exporters_iso2")
.set_index("ISO_A2")
.representative_point()
)

import_links = {}
a = regions.representative_point().to_crs(DISTANCE_CRS)
Expand Down

0 comments on commit aab1dd3

Please sign in to comment.