Skip to content

Commit

Permalink
feat: add defaults option to retrieve (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes authored Dec 5, 2024
1 parent 57bbe09 commit 04e2550
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/anemoi/inference/commands/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class RetrieveCmd(Command):
def add_arguments(self, command_parser):
command_parser.description = self.__doc__
command_parser.add_argument("config", type=str, help="Path to checkpoint")
command_parser.add_argument("--defaults", action="append", help="Sources of default values.")
command_parser.add_argument("--date", type=str, help="Date")
command_parser.add_argument("--output", type=str, help="Output file")
command_parser.add_argument("--staging-dates", type=str, help="Path to a file with staging dates")
Expand All @@ -34,7 +35,7 @@ def add_arguments(self, command_parser):

def run(self, args):

config = load_config(args.config, args.overrides)
config = load_config(args.config, args.overrides, defaults=args.defaults)

runner = DefaultRunner(config)

Expand Down

0 comments on commit 04e2550

Please sign in to comment.