Skip to content

Conversation

radiradev
Copy link
Contributor

@radiradev radiradev commented Oct 13, 2025

Description

#344

What problem does this change solve?

What issue or task does this change relate to?

Additional notes

As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/

By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.

@radiradev radiradev changed the title Remove assertion that assumes anemoi-core is installed from interpolator runner bufix: Remove assertion that assumes anemoi-core is installed from interpolator runner Oct 13, 2025
@radiradev radiradev changed the title bufix: Remove assertion that assumes anemoi-core is installed from interpolator runner bugfix: Remove assertion that assumes anemoi-core is installed from interpolator runner Oct 13, 2025
@radiradev radiradev changed the title bugfix: Remove assertion that assumes anemoi-core is installed from interpolator runner fix: Remove assertion that assumes anemoi-core is installed from interpolator runner Oct 13, 2025
Comment on lines 80 to 82
assert isinstance(
self.model.model, AnemoiModelEncProcDecInterpolator
), "Model must be an interpolator model for this runner"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we need a check here at least? Maybe a class name check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So something like this?

assert self.model.model.__class__.__name__ == "AnemoiModelEncProcDecInterpolator", \
    "Model must be an interpolator model for this runner"

Copy link
Member

@HCookie HCookie Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, how do you even not have anemoi-models installed? The de-seralisation should break no?

@HCookie HCookie moved this from To be triaged to Under Review in Anemoi-dev Oct 15, 2025
@HCookie HCookie moved this from Under Review to Now In Progress in Anemoi-dev Oct 15, 2025
@HCookie
Copy link
Member

HCookie commented Oct 15, 2025

Addressed in #335

@HCookie HCookie closed this Oct 15, 2025
@github-project-automation github-project-automation bot moved this from Now In Progress to Done in Anemoi-dev Oct 15, 2025
@radiradev radiradev deleted the patch-1 branch October 17, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants