[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-03-14 13:34:15 +00:00
parent 2023924572
commit ad9da61187
3 changed files with 3 additions and 5 deletions

View File

@ -73,9 +73,7 @@ cc = coco.CountryConverter()
def get_eia_annual_hydro_generation(fn, countries, capacities=False): def get_eia_annual_hydro_generation(fn, countries, capacities=False):
# in billion kWh/a = TWh/a # in billion kWh/a = TWh/a
df = pd.read_csv( df = pd.read_csv(fn, skiprows=2, index_col=1, na_values=[" ", "--"]).iloc[1:, 1:]
fn, skiprows=2, index_col=1, na_values=[" ", "--"]
).iloc[1:, 1:]
df.index = df.index.str.strip() df.index = df.index.str.strip()
df.columns = df.columns.astype(int) df.columns = df.columns.astype(int)

View File

@ -15,7 +15,7 @@ if __name__ == "__main__":
snakemake = mock_snakemake( snakemake = mock_snakemake(
"build_population_weighted_energy_totals", "build_population_weighted_energy_totals",
kind='energy', kind="energy",
simpl="", simpl="",
clusters=60, clusters=60,
) )