nx1 / ModellingAccretionDisks

Modelling disks for stellar objects using python to determine spectral properties.
5 stars 2 forks source link

For Large tMax (time), calculation of Timmer and Koenig Lightcurve becomes very slow #13

Open nx1 opened 6 years ago

nx1 commented 6 years ago

We have isolated the slowdown to line 59 https://github.com/astroML/astroML/blob/master/astroML/time_series/generate.py

x = np.fft.irfft(x_fft, N) #Slow for Large N

when the calculation of the inverse Fourier transform is made.

Potential solutions may include upgrading lomb scargle to to the improved version in astroML addons, however this requires a designated C compiler. or potentially using another inverse Fourier transform function.