timecorr icon indicating copy to clipboard operation
timecorr copied to clipboard

memoization

Open F1LM1 opened this issue 6 years ago • 0 comments

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.

F1LM1 avatar Feb 13 '20 21:02 F1LM1