Kamuish / serval

calculate radial velocities from stellar spectra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance bottleneck

Kamuish opened this issue · comments

Spectrum class appears to have the biggest bottleneck so far;

py2: 110 seconds per .fits file
py3 -> stuck on second file imhead -> problem with the cards -> does not find the END block to stop infinite loop

Python2 division of integers is a modulo division (// in py3). Fixed stuck in loop (calculating wrongly the data inside each card of the .fits file)