From 230c1a327c39ece654ac3c293b2509c314835896 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:27:27 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- rules/retrieve.smk | 4 ++-- scripts/retrieve_irena.py | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/rules/retrieve.smk b/rules/retrieve.smk index fec22eff..843ccd43 100644 --- a/rules/retrieve.smk +++ b/rules/retrieve.smk @@ -38,9 +38,9 @@ if config["enable"]["retrieve"] and config["enable"].get("retrieve_databundle", script: "../scripts/retrieve_databundle.py" -if config["enable"].get("retrieve_irena", True): - datafiles=[ +if config["enable"].get("retrieve_irena", True): + datafiles = [ "offwind_capacity_IRENA.csv", "onwind_capacity_IRENA.csv", "solar_capacity_IRENA.csv", diff --git a/scripts/retrieve_irena.py b/scripts/retrieve_irena.py index a448525d..d0f358c2 100644 --- a/scripts/retrieve_irena.py +++ b/scripts/retrieve_irena.py @@ -3,7 +3,6 @@ # SPDX-FileCopyrightText: : 2017-2023 The PyPSA-Eur Authors # # SPDX-License-Identifier: MIT - """ This rule downloads the existing capacities from `IRENASTAT `_ and extracts it in the ``data/existing_capacities`` sub-directory. @@ -27,7 +26,6 @@ This rule downloads the existing capacities from `IRENASTAT