jennykim1016 / OM10

Tools for working with the Oguri & Marshall (2010) mock catalog of strong gravitational lenses
MIT License
0 stars 0 forks source link

guassian reweight duplicate columns #14

Closed jennykim1016 closed 7 years ago

jennykim1016 commented 7 years ago

The gaussian_reweight method in db.py should only be called once, because it attaches the weights column to the db.sample. If there is weights column, this method currently does not allow user to renew the weight.

This should be fixed, because the user should be able to reweight with different data sets regardless of how many times they want.

jennykim1016 commented 7 years ago

Solved it by initializing the weight column to be 1s when loading the OM10 data.