njcuk9999 / lbl

Line by line code for radial velocity
MIT License
16 stars 3 forks source link

Add activity indicators to weighted average in binned table #14

Closed vandalt closed 2 years ago

vandalt commented 3 years ago

Previously, only vrad* columns and their errors (svrad*) were included in the weighted mean. This adds the activity indicators (d*v, fwhm) and their errors to the columns that are binned with a weighted mean.

Because for activity indicators the error is not just "s{colname}", I created a dictionary that maps values to errors. Then the dictionary is used to get the error column.

EDIT: I have not tested the changes. Let me know if I should create a unit test for this or if I should run it on test data.

vandalt commented 2 years ago

Closing now that this has been added to the working branch.