Skip to content

Commit

Permalink
Add plugin output finalise
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes committed Jun 20, 2024
1 parent 5a8cd02 commit d6112a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ dependencies = [
]

optional-dependencies.all = [
"ai-models>=0.6.1",
"ai-models>=0.6.2",
"tqdm",
]

optional-dependencies.dev = [
"ai-models>=0.6.1",
"ai-models>=0.6.2",
"anemoi-datasets[all]",
"pytest",
"tqdm",
]

optional-dependencies.plugin = [
"ai-models>=0.6.1",
"ai-models>=0.6.2",
"tqdm",
]

Expand Down
2 changes: 2 additions & 0 deletions src/anemoi/inference/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def run(self):
progress_callback=tqdm.tqdm,
)

self.output.finalise()

def _output(self, *args, **kwargs):
if "step" in kwargs or "endStep" in kwargs:
return self.write(*args, **kwargs)
Expand Down

0 comments on commit d6112a9

Please sign in to comment.