From 48f199f93671338c0f8a5e159804e4e8c752cbbd Mon Sep 17 00:00:00 2001 From: martacki Date: Tue, 16 Apr 2024 15:46:36 +0200 Subject: [PATCH] remove UA from countries list for synthetic load data --- scripts/build_electricity_demand.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_electricity_demand.py b/scripts/build_electricity_demand.py index 9174672d..7615bbc6 100755 --- a/scripts/build_electricity_demand.py +++ b/scripts/build_electricity_demand.py @@ -311,6 +311,8 @@ if __name__ == "__main__": logger.info("Supplement missing data with synthetic data.") fn = snakemake.input.synthetic synthetic_load = pd.read_csv(fn, index_col=0, parse_dates=True) + # "UA" does not appear in synthetic load data + countries = list(set(countries) - set(["UA"])) synthetic_load = synthetic_load.loc[snapshots, countries] load = load.combine_first(synthetic_load)