skyportal / gwemopt

Gravitational-wave Electromagnetic Optimization
GNU General Public License v3.0
19 stars 34 forks source link

changing the ud_grade method #20

Closed jgducoin closed 5 years ago

jgducoin commented 5 years ago

Fixing #18 by using the ligo.skymap.dist.ud_grade() function instead of the healpy one.

jgducoin commented 5 years ago

Be careful, I just checked that the outputted distmu distsigma distnorm from the ligo.skymap.dist.ud_grade() seems ok (and it it). But i did not go into details, for sure more tests need to be done. Also it seems like this function is changing the outputs when the nside your ask for is already the nside of the input. So i added a security in the last commit which prevent to use this function when the nside is already the needed one.