Skip to content

feat!: Implement coupling of two or more models #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 125 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from 122 commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
c42ca82
work on coupling
b8raoult Nov 30, 2024
bd608b7
add multi-input
b8raoult Nov 30, 2024
4759c83
update
b8raoult Dec 1, 2024
4c7c4df
update
b8raoult Dec 1, 2024
8ab8e68
update
b8raoult Dec 1, 2024
c278141
update
b8raoult Dec 1, 2024
86344ee
update
b8raoult Dec 1, 2024
88fae43
update
b8raoult Dec 1, 2024
6b08614
update
b8raoult Dec 1, 2024
a308bb0
update
b8raoult Dec 1, 2024
ce8ca15
update
b8raoult Dec 1, 2024
35cdbae
rpc
b8raoult Dec 1, 2024
2a32589
update
b8raoult Dec 2, 2024
7f12d4d
add ability to patch checkpoints
b8raoult Dec 5, 2024
cc795e4
Merge branch 'feature/patch' into feature/coupling
b8raoult Dec 5, 2024
49b804e
return forcings as states
b8raoult Dec 6, 2024
919b1ab
update
b8raoult Dec 6, 2024
67d9564
update
b8raoult Dec 6, 2024
77c44b9
implement threads
b8raoult Dec 6, 2024
d7486fc
implement threads
b8raoult Dec 6, 2024
bf5ca89
finalise mpi
b8raoult Dec 6, 2024
bc419ca
reorganise config
b8raoult Dec 7, 2024
0f89954
update
b8raoult Dec 7, 2024
42c7a35
work on config
b8raoult Dec 7, 2024
4294ec0
work on config
b8raoult Dec 7, 2024
fe4c3b4
add debug info
b8raoult Jan 22, 2025
3fd1860
add tracing of data sources
b8raoult Jan 23, 2025
3e4c0b1
configure accumulations
b8raoult Jan 24, 2025
39ad83c
Merge branch 'main' into feature/coupling
b8raoult Feb 28, 2025
a5c21a5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 28, 2025
ce41527
upate
b8raoult Feb 28, 2025
ed76dfd
wip
b8raoult Feb 28, 2025
3c24efd
Merge branch 'feature/coupling' of github.com:ecmwf/anemoi-inference …
b8raoult Feb 28, 2025
c8846d2
wip
b8raoult Feb 28, 2025
4a28d19
wip
b8raoult Feb 28, 2025
87042db
wip
b8raoult Feb 28, 2025
f3ceb32
wip
b8raoult Feb 28, 2025
44e9d7a
wip
b8raoult Feb 28, 2025
2ef8559
update
b8raoult Feb 28, 2025
6787de4
add types
b8raoult Feb 28, 2025
40e453e
wip
b8raoult Feb 28, 2025
034eb82
wip
b8raoult Feb 28, 2025
75abbc8
wip
b8raoult Feb 28, 2025
6e72dd2
wip
b8raoult Feb 28, 2025
7fff8a4
wip
b8raoult Mar 1, 2025
cc531f7
wip
b8raoult Mar 1, 2025
412dd4d
wip
b8raoult Mar 1, 2025
532bee8
wip
b8raoult Mar 1, 2025
b814692
wip
b8raoult Mar 2, 2025
3bade68
wip
b8raoult Mar 2, 2025
243a3e2
wip
b8raoult Mar 3, 2025
acd02ae
add mock
b8raoult Mar 3, 2025
74b129c
pytesting
b8raoult Mar 3, 2025
f1cc8cc
wip
b8raoult Mar 3, 2025
dcc0a4e
Merge branch 'merge-coupling' of github.com:ecmwf/anemoi-inference in…
b8raoult Mar 3, 2025
f0531b6
wip
b8raoult Mar 4, 2025
e85d4a7
wi
b8raoult Mar 4, 2025
979eb10
Merge branch 'merge-coupling' of github.com:ecmwf/anemoi-inference in…
b8raoult Mar 4, 2025
3e70137
add dummy input
b8raoult Mar 4, 2025
694352e
Merge remote-tracking branch 'origin/main' into merge-coupling
b8raoult Mar 4, 2025
fcaa140
wip
b8raoult Mar 4, 2025
bcbd152
Merge branch 'merge-coupling' of github.com:ecmwf/anemoi-inference in…
b8raoult Mar 4, 2025
bb437b1
wip
b8raoult Mar 4, 2025
372b103
wip
b8raoult Mar 4, 2025
a07f3f6
wip
b8raoult Mar 4, 2025
e5e9a6c
wip
b8raoult Mar 4, 2025
9b57f02
wip
b8raoult Mar 4, 2025
6f67117
wip
b8raoult Mar 4, 2025
85b1381
wip
b8raoult Mar 4, 2025
47648ef
wip
b8raoult Mar 4, 2025
8af5227
wip
b8raoult Mar 4, 2025
a90965c
wip
b8raoult Mar 4, 2025
594cf49
wip
b8raoult Mar 4, 2025
30f9d7b
wip
b8raoult Mar 4, 2025
a4d54e2
wip
b8raoult Mar 4, 2025
6502092
update
b8raoult Mar 5, 2025
a7b6fec
wip
b8raoult Mar 5, 2025
58c320b
wip
b8raoult Mar 5, 2025
397bf57
Merge branch 'merge-coupling' of github.com:ecmwf/anemoi-inference in…
b8raoult Mar 5, 2025
966d6aa
wip
b8raoult Mar 5, 2025
182ad15
wip
b8raoult Mar 5, 2025
394b021
wip
b8raoult Mar 5, 2025
5a4fb81
update
b8raoult Mar 5, 2025
0d7cfe1
tests
b8raoult Mar 6, 2025
9086d67
wip
b8raoult Mar 6, 2025
6cb55c9
wip
b8raoult Mar 6, 2025
f31c3af
update
b8raoult Mar 6, 2025
01fb527
update
b8raoult Mar 6, 2025
23fa1d4
update
b8raoult Mar 6, 2025
a397ab1
update
b8raoult Mar 6, 2025
0616a0a
wip
b8raoult Mar 6, 2025
34a9c47
more tests
b8raoult Mar 6, 2025
ef20060
wip
b8raoult Mar 7, 2025
5450d73
wip
b8raoult Mar 7, 2025
dfbb60c
wip
b8raoult Mar 7, 2025
de318de
wip
b8raoult Mar 7, 2025
e785aa5
wip
b8raoult Mar 7, 2025
1e8cd42
wip
b8raoult Mar 7, 2025
e4ff3b8
wip
b8raoult Mar 8, 2025
1719ad6
update
b8raoult Mar 8, 2025
c9a86dd
update
b8raoult Mar 8, 2025
d24dc73
wip
b8raoult Mar 8, 2025
e92efde
wip
b8raoult Mar 9, 2025
3f04912
wip
b8raoult Mar 9, 2025
e6a34eb
wip
b8raoult Mar 9, 2025
afdd529
Merge remote-tracking branch 'origin/main' into merge-coupling
b8raoult Mar 9, 2025
edee69e
Marge all commint to main since PR was created
b8raoult Mar 9, 2025
8915c45
update docstrings
b8raoult Mar 9, 2025
9a6096f
update docstrings
b8raoult Mar 9, 2025
26e1c01
wip
b8raoult Mar 10, 2025
8e2563f
wip
b8raoult Mar 10, 2025
531c2a4
wip
b8raoult Mar 11, 2025
8affb18
More bug fixes
b8raoult Mar 11, 2025
e76bc7b
update pygroject
b8raoult Mar 11, 2025
e89cfe1
update pyproject
b8raoult Mar 11, 2025
74083dd
Merge commit 'e89cfe161ef0307730355f2df89147726cd96ede' into merge-co…
b8raoult Mar 11, 2025
ba4d471
Merge commit '74083ddd5f52b6b9d5291fa6c1a1211770eae77c' into feature/…
b8raoult Mar 12, 2025
f1f2bc9
fix tests in github actions
b8raoult Mar 12, 2025
10a6b4f
support 3.9
b8raoult Mar 12, 2025
462cf89
Merge branch 'main' into feature/coupling
b8raoult Mar 13, 2025
07b0621
address some review comments
b8raoult Mar 13, 2025
2386345
Merge branch 'feature/coupling' of github.com:ecmwf/anemoi-inference …
b8raoult Mar 13, 2025
b8a9006
Update src/anemoi/inference/inputs/icon.py
HCookie Mar 17, 2025
9844dd7
address comments from reviewer
b8raoult Mar 17, 2025
6f44f84
Merge branch 'feature/coupling' of github.com:ecmwf/anemoi-inference …
b8raoult Mar 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ tmp/
temp/
logs/
_dev/
outputs/
*tmp_data/

# Project specific
Expand All @@ -135,3 +134,5 @@ _version.py
*.to_upload
tempCodeRunnerFile.python
Untitled-*.py
*.json
*.txt
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ repos:
- --check-overridden # Check overridden methods
- --check-protected # Check protected methods
- --check-class # Check class docstrings
- --disable=SIG101,SIG102 # Disable empty docstrings
# - --disable=SIG101,SIG102 # Disable empty docstrings
# - --disable=SIG505,SIG503


ci:
autoupdate_schedule: monthly
autoupdate_commit_msg: "chore(deps): pre-commit.ci autoupdate"
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,12 @@ entry-points."ai_models.model".anemoi = "anemoi.inference.plugin:AIModelPlugin"

[tool.setuptools_scm]
version_file = "src/anemoi/inference/_version.py"

[tool.mypy]
exclude = [ "docs/" ]
strict = false
ignore_missing_imports = true
allow_redefinition = true

[setuptools.package-data]
"anemoi.inference.grib.templates" = [ "*.yaml" ]
4 changes: 3 additions & 1 deletion src/anemoi/inference/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
try:
# NOTE: the `_version.py` file must not be present in the git repository
# as it is generated by setuptools at install time
from ._version import __version__ # type: ignore
from ._version import __version__
except ImportError: # pragma: no cover
# Local copy or not installed with setuptools
__version__ = "999"

__all__ = ["__version__"]
19 changes: 17 additions & 2 deletions src/anemoi/inference/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.

from typing import Any

from anemoi.utils.cli import cli_main
from anemoi.utils.cli import make_parser

Expand All @@ -15,11 +17,24 @@


# For read-the-docs
def create_parser():
def create_parser() -> Any:
"""Create a command-line argument parser.

Returns
-------
Any
The command-line argument parser.
"""
return make_parser(__doc__, COMMANDS)


def main():
def main() -> None:
"""Execute the main command-line interface.

Returns
-------
None
"""
cli_main(__version__, __doc__, COMMANDS)


Expand Down
Loading
Loading