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

DC (and possibly other solvers) do not check ahead of time for data #814

Open
aprsa opened this issue Dec 14, 2023 · 0 comments
Open

DC (and possibly other solvers) do not check ahead of time for data #814

aprsa opened this issue Dec 14, 2023 · 0 comments

Comments

@aprsa
Copy link
Contributor

aprsa commented Dec 14, 2023

When running DC on an empty dataset with just compute_times() defined, phoebe fails with an ugly index out of bounds message.

import phoebe
b = phoebe.default_binary()
b.add_dataset('lc', compute_times=phoebe.linspace(0, 1, 51), passband='Johnson:V', dataset='lc01')
b.run_compute()
b.add_solver('differential_corrections', fit_parameters=['incl@orbit'], solver='dc01')
b.run_solver(solver='dc01', solution='dcs01')
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