brandondube / prysm

physical optics: integrated modeling, phase retrieval, segmented systems, polynomials and fitting, sequential raytracing...
https://prysm.readthedocs.io/en/stable/
MIT License
262 stars 45 forks source link

papier-mache over lack of fftfreq in some fft backends #80

Closed brandondube closed 2 years ago

brandondube commented 2 years ago

mkl_fft does not have an fft_freq function, which causes the angular spectrum transfer function to crash when mkl_fft is the fft backend. This function is very minor in the scope of total runtime, but is also easy enough to write ourselves, or stub out to bonefide numpy.