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

produce_or_load doesn't recognize change in the function producing the data. #418

Open
Datseris opened this issue Jun 9, 2024 · 0 comments
Labels
enhancement New feature or request saving-files Functionality for saving files

Comments

@Datseris
Copy link
Member

Datseris commented Jun 9, 2024

Given how produce_or_load works, because it deduces the name solely on the config argument, it doesn't care about the function f. This means, that if I produce some data, then change f, then the data will be loaded instead of re-produced.

This is not good, and we should probably change it. Question is, how? If the file is saved as .jld2, then we can add an internal field like _drwatson_f_hash that stores a "hash" of the function.

Now, how do you create a "hash" out of a function, in a way that makes sense?

@Datseris Datseris added enhancement New feature or request saving-files Functionality for saving files labels Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request saving-files Functionality for saving files
Projects
None yet
Development

No branches or pull requests

1 participant