esa / pykep

PyKEP is a scientific library providing basic tools for research in interplanetary trajectory design.
http://esa.github.io/pykep/
GNU General Public License v3.0
334 stars 96 forks source link

Add functions to return DVs for `pl2pl_N_impulses` #165

Open nh2 opened 1 year ago

nh2 commented 1 year ago

Currently, the pl2pl_N_impulses chromosome -> DVs computation is inlined in the pretty() function in https://github.com/esa/pykep/blob/6425e53f0efd74997a7ad6873791f355e2ae2e93/pykep/trajopt/_pl2pl_N_impulses.py#L234-L283

This makes it inconvenient to get those values out.

It would be nice to get them directly via the API, similar to https://github.com/esa/pykep/blob/6425e53f0efd74997a7ad6873791f355e2ae2e93/pykep/trajopt/_mga.py#L247