Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing system hierarchy with flipped constraints fails #1

Open
kecnry opened this issue Aug 22, 2016 · 1 comment
Open

changing system hierarchy with flipped constraints fails #1

kecnry opened this issue Aug 22, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@kecnry
Copy link
Member

kecnry commented Aug 22, 2016

changing system hierarchy (binary->triple, flipping roles of primary and secondary, etc) throws an error when any of the built-in constraints have been flipped.

@kecnry kecnry added the bug label Aug 22, 2016
@kecnry kecnry added this to the 2.0b milestone Aug 22, 2016
@kecnry kecnry self-assigned this Aug 22, 2016
@kecnry kecnry modified the milestones: 2.0, 2.0b Sep 9, 2016
@kecnry kecnry modified the milestones: future, 2.0 Jan 24, 2017
@kecnry
Copy link
Member Author

kecnry commented Dec 13, 2019

note that this is still a bug, but is probably not a common scenario. To reproduce:

import phoebe
b=phoebe.default_binary()
b.flip_constraint('mass@primary', solve_for='period')
# setting the hierarchy still does work at this point, but flipping the constraint back causes issues
b.flip_constraint('period@binary', solve_for='mass')
b.set_hierarchy('orbit:binary(star:secondary, star:primary)')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant