Skip to content

Commit

Permalink
fixed reading of statistics remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieloks committed Sep 6, 2024
1 parent 929732d commit 16ade80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/models/preprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
def _process_config(self, config):
_special_keys = ["default", "remap"]
default = config.get("default", "none")
self.remap = config.get("remap", {})
self.remap = config.get("remap", {})[0]
method_config = {k: v for k, v in config.items() if k not in _special_keys and v is not None and v != "none"}

if not method_config:
Expand Down

0 comments on commit 16ade80

Please sign in to comment.