Rapid-Design-of-Systems-Laboratory / beluga

General purpose indirect trajectory optimization
Other
25 stars 6 forks source link

Refactoring into functions #221

Open regular-oscillator opened 4 years ago

regular-oscillator commented 4 years ago

If you're interested, this refactors beluga.py a bit into separate functions.

To be honest I don't fully understand all of the code very well, so the docstrings might be questionable.

Seven tests fail; it appears that those seven tests fail on master as well.

EDIT: now eight tests are failing. On Travis, hypersonic3DOFfamily.py is failing as of a84928a. But a84928a didn't even change anything...no, I see, that file was just added, and it happened to be added at that time. I don't know why it's failing. When I run that file locally, it seems to work fine, assuming "Continuation process completed in 43.3487 seconds." is the expected output. EDIT 2: Nevermind about an extra test failing. It appears that examples/tests was looking for that test in the wrong place, so it always failed for pytest but never failed when you ran that file directly.

msparapa commented 4 years ago

Yep, we have some bugs after we released v0.3.3. We're switching from an old version of compiling functions to @SeanMatthewNolan's codegen + custom functions. It's a work in process and isn't fully implemented yet.