Open emilyhunt opened 2 years ago
As an addendum to this, the binary viewing angles seem to be initialised in degrees currently (no unit is in the comments) but it looks like they should be in radians instead from the rest of the code, so the current defaults for viewing angle would be extra odd:
self.vtheta = 45
self.vphi = 45
self.vomega = 0
May also be worth adding in comments what exactly these parameters are (or using more explicit variable names), it's especially difficult to work out what vomega is & does.
Thanks! This is a great suggestion that I plan to incorporate in the next few weeks (except the viewing angles, fixed those already) - I have a slightly different plan for the binary parameters, as we've just added blended and lensed sources too, so I want to split up and simplify the whole process. I really appreciate the feedback, let me know if you ever have more ideas/requests!
Hey, firstly I have to say thank you for making this lovely piece of software, it is immeasurably useful for anything to do with unresolved binary astrometry with Gaia! I have a few ideas & things I've noticed about the module though and if that's ok I'll submit a couple of GitHub issues for the next few days while I'm using the module & as ideas appear.
So with astromet.params(), I noticed a couple of things:
Instead, I'd suggest something like this, which would allow the user to specify as many parameters that they need at initialisation of the object, and would also have some basic error checking (since ra, dec etc. would be mandatory to specify for every track, which I think makes sense anyway!)
So e.g. you could now initialise a basic star with no binary with
which I think is a lot neater. Python would raise an error if any of the five fundamental parameters aren't specified. It would also be possible to make it so the user has to specify all binary parameters or else an error is raised (e.g. by folding them all into just
*args
(see this link for how) and checking thatargs
contains all required binary parameters if any are specified at all.)Thanks and I hope this helps!