Skip to content

Commit 5b688e8

Browse files
authored
Merge branch 'main' into feat/dynamic-parallel-runner
2 parents 8287aa2 + bab2dbe commit 5b688e8

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"draft-pull-request": true,
1111
"pull-request-title-pattern": "chore${scope}: Release${component} ${version}",
1212
"pull-request-header": ":robot: Automated Release PR\n\nThis PR was created by `release-please` to prepare the next release. Once merged:\n\n1. A new version tag will be created\n2. A GitHub release will be published\n3. The changelog will be updated\n\nChanges to be included in the next release:",
13-
"pull-request-footer": "> [!IMPORTANT]\n> :warning: Merging this PR will:\n> - Create a new release\n> - Trigger deployment pipelines\n> - Update package versions\n\n **Before merging:**\n - Ensure all tests pass\n - Review the changelog carefully\n - Get required approvals\n\n [Release-please documentation](https://github.com/googleapis/release-please)",
13+
"pull-request-footer": "> [!IMPORTANT]\n> Please do not change the PR title, manifest file, or any other automatically generated content in this PR unless you understand the implications. Changes here can break the release process.\n> :warning: Merging this PR will:\n> - Create a new release\n> - Trigger deployment pipelines\n> - Update package versions\n\n **Before merging:**\n - Ensure all tests pass\n - Review the changelog carefully\n - Get required approvals\n\n [Release-please documentation](https://github.com/googleapis/release-please)",
1414
"packages": {
1515
".": {
1616
"package-name": "anemoi-inference"

src/anemoi/inference/outputs/grib.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ def write_initial_state(self, state: State) -> None:
196196
# We trust the GribInput class to provide the templates
197197
# matching the input state
198198

199+
if not self.write_step_zero:
200+
return
201+
199202
state = state.copy()
200203

201204
self.reference_date = state["date"]
@@ -211,9 +214,9 @@ def write_initial_state(self, state: State) -> None:
211214

212215
template = self.template(state, name)
213216
if template is None:
214-
# We can currently only write grib output if we have a grib input
217+
# grib output only reliably works when we have grib input, everything else relies on external templates
215218
raise ValueError(
216-
"GRIB output only works if the input is GRIB (for now). Set `write_initial_step` to `false`."
219+
f"No grib template found for initial state param `{name}`. Try setting `write_initial_state` to `false`."
217220
)
218221

219222
return self.write_step(state)

src/anemoi/inference/runner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ def __init__(
158158
self.post_processors = self.create_post_processors()
159159

160160
if self.verbosity > 2:
161+
logging.basicConfig(level=logging.DEBUG)
162+
for logger_name in logging.root.manager.loggerDict:
163+
logging.getLogger(logger_name).setLevel(logging.DEBUG)
164+
161165
self.checkpoint.print_indices()
162166

163167
LOG.info("Using %s runner, device=%s", self.__class__.__name__, self.device)

0 commit comments

Comments
 (0)