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

Example 1 error when plotting with N_max = 2 #159

Open
WRPK42 opened this issue Apr 26, 2022 · 0 comments
Open

Example 1 error when plotting with N_max = 2 #159

WRPK42 opened this issue Apr 26, 2022 · 0 comments

Comments

@WRPK42
Copy link

WRPK42 commented Apr 26, 2022

Hi, example 1 has an issue for N_max = 2 inside the plotting method.
https://esa.github.io/pykep/examples/ex1.html

When N_max = 2 the DV_list is empty (inside pk.trajopt.pl2pl_N_impulses) resulting in an max() arg is an empty sequence error

DV_list = x[5::4]
maxDV = max(DV_list)
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