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

plotting model from two compute options fails #840

Open
kecnry opened this issue Mar 29, 2024 · 0 comments
Open

plotting model from two compute options fails #840

kecnry opened this issue Mar 29, 2024 · 0 comments

Comments

@kecnry
Copy link
Member

kecnry commented Mar 29, 2024

script to reproduce:

import phoebe
b = phoebe.default_binary()
b.add_dataset('lc', compute_phases=phoebe.linspace(0,1,101), dataset='lc_primary_only')
b.add_dataset('lc', compute_phases=phoebe.linspace(0,1,101), dataset='lc_secondary_only')
b.add_compute('phoebe', 
              distortion_method={'primary': 'roche', 'secondary': 'none'},
              enabled={'lc_primary_only': True, 'lc_secondary_only': False},
              compute='comp_primary_only')
b.add_compute('phoebe',
              distortion_method={'primary': 'none', 'secondary': 'roche'},
              enabled={'lc_primary_only': False, 'lc_secondary_only': True},
              compute='comp_secondary_only')
b.run_compute(compute=['comp_primary_only', 'comp_secondary_only'])
print(b.filter(context='model')  # does show the arrays are populated correctly 
b.plot(legend=True, show=True)  # raises an error currently

(see #839 (comment))

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

No branches or pull requests

1 participant