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

memoization #134

Open
F1LM1 opened this issue Feb 13, 2020 · 0 comments
Open

memoization #134

F1LM1 opened this issue Feb 13, 2020 · 0 comments

Comments

@F1LM1
Copy link

F1LM1 commented Feb 13, 2020

Working on memoizing timecorr—need to have hashable parameters (then we can simply use Python's @lru_cache).

I've written a function that converts np.array and lists of np.array (non-hashable) into tuples (hashable when data is static) and back, but still can't think of a good way to hash any functions that may be passed in as parameters.

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

No branches or pull requests

1 participant