From c9447d33b6bbb2f1bef302c0bc24226490c87e28 Mon Sep 17 00:00:00 2001 From: sahahner Date: Tue, 10 Sep 2024 08:09:20 +0000 Subject: [PATCH] tests: remapped variables need to be given as dictionary not list --- tests/data_indices/test_collection.py | 10 ++++------ tests/preprocessing/test_preprocessor_imputer.py | 2 +- tests/preprocessing/test_preprocessor_normalizer.py | 2 +- tests/preprocessing/test_preprocessor_remapper.py | 8 +++----- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/tests/data_indices/test_collection.py b/tests/data_indices/test_collection.py index 78b3ecd..8505f8a 100644 --- a/tests/data_indices/test_collection.py +++ b/tests/data_indices/test_collection.py @@ -19,12 +19,10 @@ def data_indices(): "data": { "forcing": ["x", "e"], "diagnostic": ["z", "q"], - "remapped": [ - { - "e": ["e_1", "e_2"], - "d": ["d_1", "d_2"], - } - ], + "remapped": { + "e": ["e_1", "e_2"], + "d": ["d_1", "d_2"], + }, }, }, ) diff --git a/tests/preprocessing/test_preprocessor_imputer.py b/tests/preprocessing/test_preprocessor_imputer.py index e161c12..5218efc 100644 --- a/tests/preprocessing/test_preprocessor_imputer.py +++ b/tests/preprocessing/test_preprocessor_imputer.py @@ -26,7 +26,7 @@ def non_default_input_imputer(): "imputer": {"default": "none", "mean": ["y"], "maximum": ["x"], "none": ["z"], "minimum": ["q"]}, "forcing": ["z", "q"], "diagnostic": ["other"], - "remapped": [], + "remapped": {}, }, }, ) diff --git a/tests/preprocessing/test_preprocessor_normalizer.py b/tests/preprocessing/test_preprocessor_normalizer.py index 9432b83..cc527e7 100644 --- a/tests/preprocessing/test_preprocessor_normalizer.py +++ b/tests/preprocessing/test_preprocessor_normalizer.py @@ -25,7 +25,7 @@ def input_normalizer(): "normalizer": {"default": "mean-std", "min-max": ["x"], "max": ["y"], "none": ["z"], "mean-std": ["q"]}, "forcing": ["z", "q"], "diagnostic": ["other"], - "remapped": [], + "remapped": {}, }, }, ) diff --git a/tests/preprocessing/test_preprocessor_remapper.py b/tests/preprocessing/test_preprocessor_remapper.py index d5bd52a..86bdfde 100644 --- a/tests/preprocessing/test_preprocessor_remapper.py +++ b/tests/preprocessing/test_preprocessor_remapper.py @@ -28,11 +28,9 @@ def input_remapper(): }, "forcing": ["z", "q"], "diagnostic": ["other"], - "remapped": [ - { - "d": ["cos_d", "sin_d"], - } - ], + "remapped": { + "d": ["cos_d", "sin_d"], + }, }, }, )