From c510c0fa0f4f7ceea8b3398aa3363fa7fc704944 Mon Sep 17 00:00:00 2001 From: Pirmin Kaufmann Date: Fri, 3 May 2024 17:32:30 +0200 Subject: [PATCH] Correct bug in naming of output files. --- README.md | 1 - pyproject.toml | 2 +- src/moveroplot/daytime_scores.py | 3 ++- src/moveroplot/time_scores.py | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9d7f13f..a0196b0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ This section describes the installation for users. If you intend to contribute, git clone --depth 1 --branch https://github.com/MeteoSwiss-APN/movero-plot ``` - 2. Create a virtual environment: ```bash diff --git a/pyproject.toml b/pyproject.toml index 81d9d6c..9655552 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "moveroplot" -version = "1.1.2" +version = "1.1.3" description = "Movero-plot" readme = "README.md" keywords = [ diff --git a/src/moveroplot/daytime_scores.py b/src/moveroplot/daytime_scores.py index f7ba18c..b8d99c5 100644 --- a/src/moveroplot/daytime_scores.py +++ b/src/moveroplot/daytime_scores.py @@ -219,7 +219,8 @@ def _generate_daytime_plots( output_dir, debug, ): - model_versions = list(models_data.keys()) + # flat list of unique keys of dicts within models_data dict + model_versions = list({k for d in models_data.values() for k in d.keys()}) # initialise filename base_filename = ( diff --git a/src/moveroplot/time_scores.py b/src/moveroplot/time_scores.py index bfa9949..b686023 100644 --- a/src/moveroplot/time_scores.py +++ b/src/moveroplot/time_scores.py @@ -292,7 +292,8 @@ def _generate_timeseries_plots( output_dir, debug, ): - model_versions = list(models_data.keys()) + # flat list of unique keys of dicts within models_data dict + model_versions = list({k for d in models_data.values() for k in d.keys()}) # initialise filename base_filename = (