Skip to content

Commit

Permalink
Work on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed May 28, 2024
1 parent f5f901e commit 7c7c717
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/anemoi/inference/commands/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class Metadata(Command):
"""Edit, remove, dump or load metadata from a checkpoint file."""

def add_arguments(self, command_parser):
from anemoi.utils.checkpoints import DEFAULT_FOLDER
from anemoi.utils.checkpoints import DEFAULT_NAME

command_parser.add_argument("path", help="Path to the checkpoint.")
Expand Down Expand Up @@ -54,7 +53,6 @@ def add_arguments(self, command_parser):
)

command_parser.add_argument("--name", default=DEFAULT_NAME, help="Name of metadata.")
command_parser.add_argument("--folder", default=DEFAULT_FOLDER, help="Name of metadata.")

command_parser.add_argument("--input", help="The output file name to be used by the ``--load`` option.")
command_parser.add_argument("--output", help="The output file name to be used by the ``--dump`` option.")
Expand Down Expand Up @@ -159,7 +157,7 @@ def load(self, args):
if has_metadata(args.path, args.name):
replace_metadata(args.path, metadata)
else:
save_metadata(args.path, metadata, args.name, args.folder)
save_metadata(args.path, metadata, args.name)


command = Metadata

0 comments on commit 7c7c717

Please sign in to comment.