Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Fix lambert API - #1450

Merged
astrojuanlu merged 3 commits into
poliastro:mainfrom
jorgepiloto:issue/1054
Jan 31, 2022
Merged

astrojuanlu merged 3 commits into
poliastro:mainfrom
jorgepiloto:issue/1054

Conversation

@jorgepiloto

Copy link
Copy Markdown
Member

This PR solves for #1054 by:

  • Making sure all Lambert's problem solvers accepts the same amount of solvers. In the case of iod.vallado and error is raised when M>0 since the multi-revolution scenario has not been implemented yet (see Add multiple revolution case to vallado solver for Lambert #858).

  • Allowing user to select the desired inclination of the transfer orbit via is_prograde argument.

  • When two solutions are found (only for M>0), the is_lowpath argument allows user to select between one of those.

@jorgepiloto

Copy link
Copy Markdown
Member Author

I still need to include a test for the new NotImplementedError exception in core.iod.vallado and fix the notebook titled "Multirevolutions solution in Lamberts problem".

@codecov

codecov Bot commented Jan 20, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #1450 (29bc234) into main (726c95d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1450   +/-   ##
=======================================
  Coverage   91.83%   91.83%           
=======================================
  Files          95       95           
  Lines        4444     4445    +1     
  Branches      427      425    -2     
=======================================
+ Hits         4081     4082    +1     
  Misses        273      273           
  Partials       90       90           
Impacted Files Coverage Δ
src/poliastro/core/iod.py 90.16% <100.00%> (+0.16%) ⬆️
src/poliastro/iod/izzo.py 100.00% <100.00%> (ø)
src/poliastro/iod/vallado.py 100.00% <100.00%> (ø)
src/poliastro/maneuver.py 97.72% <100.00%> (-0.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 726c95d...29bc234. Read the comment docs.

@jorgepiloto

Copy link
Copy Markdown
Member Author

The notebook is in the oven... 👨🏽‍🍳

@astrojuanlu astrojuanlu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is starting to look better! 👏🏽 Left a couple of preliminary comments

Comment thread src/poliastro/core/iod.py Resolved
Comment thread src/poliastro/core/iod.py Resolved
@jorgepiloto
jorgepiloto force-pushed the issue/1054 branch 6 times, most recently from 9a9b34b to 81967d0 Compare January 24, 2022 09:17
@jorgepiloto
jorgepiloto marked this pull request as ready for review January 24, 2022 09:17
@jorgepiloto

Copy link
Copy Markdown
Member Author

The notebook about "Multirevolutions solution..." has been almost written from scratch. However, I faced the following problem:

  • The StaticOrbitPlotter.plot_maneuver method did not allowed me to customize the linestyle for each one of the transfer trajectories. Even after following the plotter customization tutorial I did ont succeed at this task.

If you think that the new notebook is good enough and the rest of the changes are good to merge, we can proceed and investigate plot_maneuver customization in a new issue, @astrojuanlu.

@astrojuanlu astrojuanlu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new notebook looks great, congrats @jorgepiloto ! 👏🏽

My only feedback is whether we could use docs/source/examples/lambert_paths.png as the thumbnail, and that the last plot looks a bit small. Perhaps the axes could be displayed vertically instead of horizontally.

About the linestyles, yes feel free to open a new issue if you tried and failed.

@jorgepiloto
jorgepiloto force-pushed the issue/1054 branch 2 times, most recently from be22362 to b10732f Compare January 31, 2022 15:55

@astrojuanlu astrojuanlu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@astrojuanlu
astrojuanlu merged commit 6185c73 into poliastro:main Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants