danfeldman90 / EDGE

Espaillat Disk Group Extraordinaires: Tools & Manuals
MIT License
0 stars 3 forks source link

edit rchi2 to handle nan / edit look to not plot lines in data gaps #22

Closed mrutala closed 9 years ago

mrutala commented 9 years ago

As it is, if you have a spectra which had parts cut out in spextool, it is stored with nans where the cuts were made, which gives a clean looking plot. However, if rchi2 is used with this pickle, the nans cause it to crash. Without the nans, the spectra will connect points across the cut, giving an odd looking plot.

danfeldman90 commented 9 years ago

This has been fixed. Chi-squared function now will overlook the NaNs in the spectra.