Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Removed unnecessary brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
OpheliaMiralles committed Dec 13, 2024
1 parent c65e9e4 commit ce791c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/anemoi/models/preprocessing/remapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def __new__(
_, _, method_config = cls._process_config(config)
monomappings = Monomapper.supported_methods
multimappings = Multimapper.supported_methods
if all([method in monomappings for method in method_config]):
if all(method in monomappings for method in method_config):
return Monomapper(config, data_indices, statistics)
elif all([method in multimappings for method in method_config]):
elif all(method in multimappings for method in method_config):
return Multimapper(config, data_indices, statistics)
elif not (
any([method in monomappings for method in method_config])
or any([method in multimappings for method in method_config])
any(method in monomappings for method in method_config)
or any(method in multimappings for method in method_config)
):
raise ValueError("No valid remapping method found.")
else:
Expand Down

0 comments on commit ce791c0

Please sign in to comment.