Raise error in Orbit.from_sbdb when more than one orbit is returned
See original GitHub issue🐞 Problem
When Orbit.from_sbdb
is called with names which are too common, like “Halley” or “*alley”, it returns a keyerror. Raise a suitable warning in those cases.
Code to reproduce error:
Orbit.from_sbdb("Halley")
🖥 Please paste the output of following commands
conda info -a
(only if you have conda)conda list
(only if you have conda)pip freeze
# Paste your output here:
python -c "import poliastro.testing; poliastro.testing.test()"
# Paste your output here:
🎯 Goal
Related to #534
To make from_sbdb
more user friendly.
💡 Possible solutions
📋 Steps to solve the problem
- Comment below about what you’ve started working on.
- Add, commit, push your changes
- Submit a pull request and add this in comments -
Addresses #<put issue number here>
- Ask for a review in comments section of pull request
- Celebrate your contribution to this project 🎉
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
The electron present in the 5 th orbit in an excited hydrogen ...
The electron present in the 5th orbit in an excited hydrogen atom returns back to the ground state. The number of lines which...
Read more >The electron present in 5th orbit in excited ... - YouTube
The electron present in 5th orbit in excited hydrogen atoms returned back to ground state. The no. of lines which appear in Lyman...
Read more >Number of visible lines when an electron returns from 5th orbit ...
Number of visible lines when an electron returns from 5th orbit to ground state in H spectrum : … ... more ... more...
Read more >A Heuristic Search Algorithm for Asteroid Tour Missions
1.5.1 Two Body Orbital Boundary Value Problem . . . . . . 9 ... Returning to the optimization of trajectories for an...
Read more >(PDF) SORA: Stellar Occultation Reduction and Analysis
PDF | The stellar occultation technique provides competitive accuracy in determining the sizes, shapes, astrometry, etc., of the occulting body,.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @michiboo!! It is already solved actually, I just have to make the pull request but the coding is done, I will do it tonight if time allows me to 😄 Thanks!!
Yes, I run it and it raises the error as the previous coder already did but changing slightly the coding. I am going to try to make the pull request so that you any can review it 😄