From ad9da6118757ccfc44dc92cac00b7748fe7f383a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 13:34:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/configtables/load.csv | 2 +- scripts/build_hydro_profile.py | 4 +--- scripts/build_population_weighted_energy_totals.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/configtables/load.csv b/doc/configtables/load.csv index b245268f..02e7b97b 100644 --- a/doc/configtables/load.csv +++ b/doc/configtables/load.csv @@ -4,4 +4,4 @@ time_shift_for_large_gaps,string,string,"Periods which are used for copying time manual_adjustments,bool,"{true, false}","Whether to adjust the load data manually according to the function in :func:`manual_adjustment`." scaling_factor,--,float,"Global correction factor for the load time series." fixed_year,--,Year or False,"To specify a fixed year for the load time series that deviates from the snapshots' year" -supplement_missing_data_artificially,bool,"{true, false}","Whether to supplement missing data for selected time period should be supplemented by artificial data from https://zenodo.org/record/7070438/files/demand_hourly.csv." \ No newline at end of file +supplement_missing_data_artificially,bool,"{true, false}","Whether to supplement missing data for selected time period should be supplemented by artificial data from https://zenodo.org/record/7070438/files/demand_hourly.csv." diff --git a/scripts/build_hydro_profile.py b/scripts/build_hydro_profile.py index 510bc6fa..76ffc496 100644 --- a/scripts/build_hydro_profile.py +++ b/scripts/build_hydro_profile.py @@ -73,9 +73,7 @@ cc = coco.CountryConverter() def get_eia_annual_hydro_generation(fn, countries, capacities=False): # in billion kWh/a = TWh/a - df = pd.read_csv( - fn, skiprows=2, index_col=1, na_values=[" ", "--"] - ).iloc[1:, 1:] + df = pd.read_csv(fn, skiprows=2, index_col=1, na_values=[" ", "--"]).iloc[1:, 1:] df.index = df.index.str.strip() df.columns = df.columns.astype(int) diff --git a/scripts/build_population_weighted_energy_totals.py b/scripts/build_population_weighted_energy_totals.py index c2be19a9..70105a06 100644 --- a/scripts/build_population_weighted_energy_totals.py +++ b/scripts/build_population_weighted_energy_totals.py @@ -15,7 +15,7 @@ if __name__ == "__main__": snakemake = mock_snakemake( "build_population_weighted_energy_totals", - kind='energy', + kind="energy", simpl="", clusters=60, )