Skip to content

Commit

Permalink
tests: remapped variables need to be given as dictionary not list
Browse files Browse the repository at this point in the history
  • Loading branch information
sahahner committed Sep 10, 2024
1 parent 8058c52 commit c9447d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
10 changes: 4 additions & 6 deletions tests/data_indices/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
},
},
)
Expand Down
2 changes: 1 addition & 1 deletion tests/preprocessing/test_preprocessor_imputer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
},
},
)
Expand Down
2 changes: 1 addition & 1 deletion tests/preprocessing/test_preprocessor_normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
},
},
)
Expand Down
8 changes: 3 additions & 5 deletions tests/preprocessing/test_preprocessor_remapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ def input_remapper():
},
"forcing": ["z", "q"],
"diagnostic": ["other"],
"remapped": [
{
"d": ["cos_d", "sin_d"],
}
],
"remapped": {
"d": ["cos_d", "sin_d"],
},
},
},
)
Expand Down

0 comments on commit c9447d3

Please sign in to comment.