Skip to content

Commit

Permalink
fix: missing constant_fields property
Browse files Browse the repository at this point in the history
  • Loading branch information
gmertes committed Aug 14, 2024
1 parent 11e6527 commit 712aad2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ Keep it human-readable, your future self will thank you!
## [Unreleased]

### Added
- added downstream-ci, reathedocs update check and label public pr workflows

### Changed

### Removed

## [0.1.10] Fix missing constants

### Added
- (GH) Added downstream-ci, reathedocs update check and label public pr workflows

### Changed
- Fix missing constant_fields property to query constants in the checkpoint

## [0.1.9] Patch, Move output finalise to ai-models

### Removed
Expand Down Expand Up @@ -67,6 +74,7 @@ Keep it human-readable, your future self will thank you!
Initial Implementation of anemoi-inference

## Git Diffs:
[0.1.10]: https://github.com/ecmwf/anemoi-inference/compare/0.1.9...0.1.10
[0.1.9]: https://github.com/ecmwf/anemoi-inference/compare/0.1.8...0.1.9
[0.1.8]: https://github.com/ecmwf/anemoi-inference/compare/0.1.7...0.1.8
[0.1.7]: https://github.com/ecmwf/anemoi-inference/compare/0.1.6...0.1.7
Expand Down
4 changes: 4 additions & 0 deletions src/anemoi/inference/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def param_level_pl(self):
def param_level_ml(self):
return self.runner.checkpoint.param_level_ml

@property
def constant_fields(self):
return self.runner.checkpoint.constants_from_input

@property
def grid(self):
return self.runner.checkpoint.grid
Expand Down

0 comments on commit 712aad2

Please sign in to comment.