phoebe-project / phoebe2

PHOEBE - Eclipsing Binary Star Modeling Software
http://phoebe-project.org
GNU General Public License v3.0
79 stars 30 forks source link

changing system hierarchy with flipped constraints fails #1

Open kecnry opened 8 years ago

kecnry commented 8 years ago

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 commented 4 years ago

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)')