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

Allow for saving of interpolators #1228

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

kthyng
Copy link
Contributor

@kthyng kthyng commented Feb 14, 2024

I made changes to structured.py to allow for saving the interpolators to save time on repeated simulations. The necessary attributes to use the save option need to be input via the reader, currently only available in the ROMS reader.

This PR also has changes that clean up the name variable in the ROMS reader. Previously there was logic to deal with name for several cases but subsequently it was overwritten to be “roms native”. Now name is used if input and otherwise set to “roms native”.

The change to allow for saving interpolators was mentioned in #1130.

I made changes to structured.py to allow for saving the interpolators to save time on repeated simulations. The necessary attributes to use the save option need to be input via the reader, currently only available in the ROMS reader.

This PR also has changes that clean up the name variable in the ROMS reader. Previously there was logic to deal with name for several cases but subsequently it was overwritten to be “roms native”. Now name is used if input and otherwise set to “roms native”.
@kthyng
Copy link
Contributor Author

kthyng commented Feb 14, 2024

Sorry I didn't notice there were updates I hadn't incorporated into my branch.

@knutfrode
Copy link
Collaborator

Thank you, this is a useful feature.

@knutfrode knutfrode merged commit 567998f into OpenDrift:master Feb 14, 2024
6 checks passed
@kthyng kthyng deleted the save_interpolators branch February 14, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants