From 0e97d39c4c1fbc6ae4619e24550baff3d5e0addf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 14:10:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/build_biomass_transport_costs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/build_biomass_transport_costs.py b/scripts/build_biomass_transport_costs.py index a5db4c9d..c20b3882 100644 --- a/scripts/build_biomass_transport_costs.py +++ b/scripts/build_biomass_transport_costs.py @@ -24,14 +24,16 @@ ENERGY_CONTENT = 4.8 # unit MWh/t (wood pellets) def get_countries(): - pandas_options = dict(skiprows=range(6), header=None, index_col=0, encoding='cp1252') + pandas_options = dict( + skiprows=range(6), header=None, index_col=0, encoding="cp1252" + ) return tbl.read_pdf( str(snakemake.input.transport_cost_data), pages="145", multiple_tables=False, pandas_options=pandas_options, - encoding='cp1252', + encoding="cp1252", )[0].index @@ -42,7 +44,7 @@ def get_cost_per_tkm(page, countries): sep=" |,", engine="python", index_col=False, - encoding='cp1252', + encoding="cp1252", ) sc = tbl.read_pdf( @@ -50,7 +52,7 @@ def get_cost_per_tkm(page, countries): pages=page, multiple_tables=False, pandas_options=pandas_options, - encoding='cp1252', + encoding="cp1252", )[0] sc.index = countries sc.columns = sc.columns.str.replace("€", "EUR")