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

Use lru_cache for caching #2

Open
beatreichenbach opened this issue Feb 18, 2023 · 0 comments
Open

Use lru_cache for caching #2

beatreichenbach opened this issue Feb 18, 2023 · 0 comments

Comments

@beatreichenbach
Copy link

First of all: I was blown away by your understanding of the math that goes into the FrFT, thank you so much for sharing it with the rest of us!

It could be nice to use lru_cache from the functools module to do the caching of the chirp function.
I went ahead and rewrote some of your code with the use of the lru_cache decorator.
https://gist.github.com/beatreichenbach/9f2eda2dd4cb16b75ebaececee89316f

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