ContextLab / ContextLab/timecorr

memoization

Open
#134 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
41
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.