From e63f6b3c71e04b5fb17bb4d45716cb421dfba984 Mon Sep 17 00:00:00 2001 From: ekatef Date: Sat, 25 May 2024 11:16:23 +0300 Subject: [PATCH] Return default nc-path definition --- scripts/build_demand_profiles.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/build_demand_profiles.py b/scripts/build_demand_profiles.py index 7a18c9ebd..3a57cd469 100644 --- a/scripts/build_demand_profiles.py +++ b/scripts/build_demand_profiles.py @@ -130,6 +130,13 @@ def get_load_paths_gegis(ssp_parentfolder, config, check_existence=False): logger.warning( f"No demand data file for {set(region_load).difference(avail_regions)}. An assumed load folder {load_dir}." ) + else: + for continent in region_load: + load_path = os.path.join( + load_dir, + str(continent) + ".nc", + ) + load_paths.append(load_path) return load_paths