-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cache configuration without threads #64
Comments
@sandorkertesz do you have some ideas? |
@juntyr , thank you for your question.
However, please note that if you turn off the cache the interpolation matrix is downloaded every single time you use it! The possible solutions are as follows:
|
Thanks for your reply! I can see in the docs that the under-development version will support overriding the config using environment variables (https://github.com/ecmwf/earthkit-regrid/blob/develop/docs/guide/config.rst) - this would be a good option for me. I think what I would appreciate is if - once that new version has been released - setting |
In the ESiWACE3 Online Compression Laboratory, we use earthkit-regrid in an environment without threads (Python in the web browser using WebAssembly: Pyodide). At the moment, we need to patch a pinned version of the earthkit-regrid source to change the default cache setting to none, since the user cache requires threads.
However, we would like to move towards a less invasive config patch that would allow us to support any future version of earthkit-regrid.
Is the config file format now sufficiently stable that providing a config file in the expected location that overrides the cache setting would be a forward-compatible solution?
Alternatively, would it be possible to patch earthkit-regrid upstream to fall back to no caching or a new thread-less solution if threads are not available? I could implement such a solution if desired.
Is there any other way this problem could be solved?
The text was updated successfully, but these errors were encountered: