At the moment, patch_request takes a dict and returns a dict, this works if only one key needs to be changed, but if multiple, it might not be possible to return a valid request.
If the patch_request could return a list of dicts, this could be solved.
|
# Patch BEFORE the shortname to paramid |
|
if patch_request: |
|
r = patch_request(r) |
At the moment,
patch_requesttakes a dict and returns a dict, this works if only one key needs to be changed, but if multiple, it might not be possible to return a valid request.If the
patch_requestcould return a list of dicts, this could be solved.anemoi-inference/src/anemoi/inference/metadata.py
Lines 858 to 860 in ed7f07c