From ab1d93279a76fe2608183ca0ed2968514ce0b3fb Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Thu, 4 Jan 2024 09:19:29 +0100 Subject: [PATCH] move LUISA resolution info to a later point --- scripts/build_renewable_profiles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index b58482ae..b736f68a 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -238,14 +238,14 @@ if __name__ == "__main__": for dataset in ["corine", "luisa"]: kwargs = {"nodata": 0} if dataset == "luisa" else {} + settings = params.get(dataset, {}) + if not settings: + continue if dataset == "luisa" and res > 50: logger.info( "LUISA data is available at 50m resolution, " f"but coarser {res}m resolution is used." ) - settings = params.get(dataset, {}) - if not settings: - continue if isinstance(settings, list): settings = {"grid_codes": settings} if "grid_codes" in settings: