Skip to content

Commit

Permalink
First commits
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed May 21, 2024
1 parent b5faa43 commit 57523b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,4 @@ _build/
~*
*.sync
_version.py
*.ckpt
14 changes: 3 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ classifiers = [
"Operating System :: OS Independent",
]

dependencies = [

]
dependencies = ["anemoi-utils"]

[project.optional-dependencies]

Expand All @@ -50,15 +48,9 @@ docs = [
# For building the documentation
]

all = [
]
all = []

dev = [
"sphinx",
"sphinx_rtd_theme",
"nbsphinx",
"pandoc",
]
dev = ["sphinx", "sphinx_rtd_theme", "nbsphinx", "pandoc"]

[project.urls]
Homepage = "https://github.com/ecmwf/anemoi-inference/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,20 @@
# nor does it submit to any jurisdiction.
#

"""Command place holder. Delete when we have real commands.
"""

from ..checkpoint import Checkpoint
from . import Command


def say_hello(greetings, who):
print(greetings, who)

class CheckpointCmd(Command):

class Hello(Command):
need_logging = False

def add_arguments(self, command_parser):
command_parser.add_argument("--greetings", default="hello")
command_parser.add_argument("--who", default="world")
command_parser.add_argument("path", help="Path to the checkpoint.")

def run(self, args):
say_hello(args.greetings, args.who)
Checkpoint(args.path).describe()


command = Hello
command = CheckpointCmd

0 comments on commit 57523b4

Please sign in to comment.