Professor-G / MicroLIA

Gravitational microlensing classification engine using machine learning
GNU General Public License v3.0
13 stars 6 forks source link

Fix gskew nans #25

Closed romanovzky closed 11 months ago

romanovzky commented 11 months ago

Fixes NaN appearing in GSkew arising from an Index Out of Bounds errors due to np.searchsorted returning an empty array when the q3 or q97 are "outside" the values. This happens when the errors span too many orders of magnitude, provoking a saturation of the cumulative sum.