Replies: 1 comment 4 replies
-
|
Hi Dom - Can you let me know what version of astropy you are using? Was that different than the version of astropy you had when it was working? This might be a change in how astropy is handling units that we need to handle in phoebe as well. Would you mind opening an issue with those details and we will try to reproduce and get it fixed? Although setting a manual constraint like this should work and do what you want, there is also a systemic physical velocity you can set ( Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm working with a binary where I have a light curve and radial velocities. I have multiple spectrographs, and I'd like to include an RV offset to account for systematic offsets between the instruments.
say my two instruments are alpha and beta. I have more RV measurements from alpha, so I want to fit for an RV offset that is applied to measurements from beta.
I want the RV offset to be applied to both the primary and the secondary RVs so I want to add a constraint to ensure the rv_offset of the secondary just points to the rv_offset for the primary.
In the past, I've done something like this:
I last did this a few PHOEBE versions ago, and this isn't successful on 2.4.22. When adding the constraint, the error is something like:
The constraint gets made, but doesn't seem to be enforced. printing
gives a more informative error message. Here is the relevant portion
It looks like by default every constraint is set to have constraint.in_solar_units = True. Modifying
to
in constraint.py seems to fix it, but I have a feeling this is not the intended approach. Any advice here? More generally, is there a reason why the rv_offsets are applied to components separately and not applied at the dataset level? In other words, why would one want to add an RV offset to the primary but not the secondary?
Cheers,
Dom
Beta Was this translation helpful? Give feedback.
All reactions