Skip to content
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

Feature/flexible remappers #88

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

OpheliaMiralles
Copy link

Related to #82. Rename remapper.py in multimapper.py because it was created to handle the angle (1 variables) to cos/sin (2 variables) case, which is a bit more involved than the 1-to-1 remapping. Mappings are in a module mappings.py, which is aimed at being easy to modify so that everyone can add 1-to-1 mappings. Finally, 1-to-1 remapping in place is done in remapper.py. Feel free to comment/edit/commit on top if something is unclear/does not work. Names need to change in the config from __target__: anemoi.models.preprocessing.remapper.Remapper to __target__: anemoi.models.preprocessing.multimapper.Multimapper for users of the angle to cos_sin mapping.

@FussyDuck
Copy link

FussyDuck commented Nov 22, 2024

CLA assistant check
All committers have signed the CLA.

@sahahner
Copy link
Member

Hi Ophelia,
Thank you for this nice PR. I will have a look at the contributions.
I am worried about changing the name of the remapper, because this will enforce not only changes in everyone's config files (for those who are using the remapper at the moment) but will also require another PR on anemoi-training. Can we possibly find another name for the 1-to-1 remapper?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants