psmd-iberutaru / Lezargus

The accompanying data software package to the IRTF SPECTRE Spectrograph.
MIT License
0 stars 0 forks source link

Weights are undefined if there is no uncertainty. #8

Closed psmd-iberutaru closed 7 months ago

psmd-iberutaru commented 8 months ago

A function should be made that can accept provided uncertainties in any form, and return a series of weights based on some mode of weighting, including those which really do not care about uncertainties.

This will allow weights to be calculated while also avoiding issues regarding NaNs and the like.

Should maybe be put in lezargus.library.math?

psmd-iberutaru commented 7 months ago

Redone as having a way to clean and normalize weights. Should other issues arrise, more specific issues should be posted.

Current fix is lezargus.library.math.normalize_weights()