From 43a55a2039405ef47299acba7dad87a969a24f78 Mon Sep 17 00:00:00 2001 From: Measrainsey Meng Date: Tue, 22 Oct 2024 16:53:24 +0200 Subject: [PATCH] Add second version string to correct data path Currently data is stored in a folder that has a version number on it. It would be better to remove this so the files being read won't be dependent on this numbering system but instead should only depend on version name. --- message_ix_buildings/chilled/postprocess/postprocess.py | 2 +- message_ix_buildings/chilled/util/config.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/message_ix_buildings/chilled/postprocess/postprocess.py b/message_ix_buildings/chilled/postprocess/postprocess.py index bef248b..5ceabdf 100644 --- a/message_ix_buildings/chilled/postprocess/postprocess.py +++ b/message_ix_buildings/chilled/postprocess/postprocess.py @@ -255,4 +255,4 @@ def postprocess_electricity_demand(input_path, input_version_name): ) -postprocess_electricity_demand(dle_path, cfg.vstr) +postprocess_electricity_demand(dle_path, cfg.vstr2 + "_" + cfg.vstr) diff --git a/message_ix_buildings/chilled/util/config.py b/message_ix_buildings/chilled/util/config.py index bafe7ff..cac5d17 100644 --- a/message_ix_buildings/chilled/util/config.py +++ b/message_ix_buildings/chilled/util/config.py @@ -18,6 +18,7 @@ class Config: #: #: This is used to name the output files and directories. vstr: str = "ALPS2023" + vstr2 = "v19" #: Select the climate model. #: