Replies: 1 comment 3 replies
-
Hi Dom! - this looks like you're running into issue #342. That issue has existed for a while (3 years 😬 ) but no one really ran into it in practice until now, so I didn't prioritize tracking down the cause. I'll bump it up on the priority list, but I can't promise fixing it terribly soon. You might be able to get around this by setting up all your parameters and datasets and then duplicating the bundle (with -Kyle |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm having some trouble using constraints and making sense of when I can flip back and forth between different sets of free parameters.
Here is a simple of example that is similar to what I'm trying to do:
In practice, I'm running optimization/MCMC between these steps. Here I am setting the values of mass and the sma to emulate 'kicking' the parameters and prevent falling into local minima between optimization steps or incorporating prior information from the literature (on asini, for example).
Unfortunately, in this example above, I get the following error on line 6:
My expectation was that I should be able to flip between sma and primary mass like this as many times as I like.
I tried printing some additional information to see how line 2 and 6 differ. Before both of these lines I printed:
Before the first call to b.flip_constraint('mass@primary', solve_for='sma@binary'), the output is
Before the second call to b.flip_constraint('mass@primary', solve_for='sma@binary'), the output is
Why does 'mass@primary@star@component' get removed during the flipping of constraints? Do you have any suggestions for what I should be doing differently so that I can run the original code snippet above?
Thanks!
Dom
Beta Was this translation helpful? Give feedback.
All reactions