Return times in Orbit.sample
See original GitHub issue🐞 Problem
Sampling an orbit was introduced in #263, and it just returns a CartesianRepresentation
object:
https://github.com/poliastro/poliastro/blob/v0.8.0/src/poliastro/twobody/orbit.py#L315
It would be nice to return the time values as well.
🎯 Goal
Just sampling the positions is enough for things like plotting, but any application that needs to analyze the results would benefit from having the times as well.
💡 Possible solutions
- Return a tuple
times, positions
- Return a new type of object (
Trajectory
?)
Notice that both of these break the API. Any solution that returns different things depending on an optional parameter won’t be accepted.
📋 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 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Sample-return mission - Wikipedia
A sample-return mission is a spacecraft mission to collect and return samples from an extraterrestrial location to Earth for analysis. Sample-return ...
Read more >Pieces of Heaven: A Brief History of Sample-Return Missions
Space -based sample-return then took a 20-year hiatus, coming back in the mid-1990s with an experiment on Russia's Mir space station that ...
Read more >Sample Return Missions - an overview | ScienceDirect Topics
A sample-return mission is performed by using a robotic operated/crewed spacecraft that lands on the target extraterrestrial location (Mars, Moon, and Asteroid) ...
Read more >Sample Return - Signs of Life - NCBI Bookshelf
The principal public concern is whether samples that are returned from another planet might harbor unknown organisms that could pose a threat to...
Read more >Returned asteroid sample unlocks time capsule older than the ...
Scientists have conducted the first comprehensive analysis of samples returned from asteroid Ryugu, finding a detailed history starting with ...
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 Free
Top 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
That would be a correct implementation, but I still think
Orbit.get_times
makes no sense. I’d prefer to return a tuple(times, positions)
than have aget_times
method. Of course if you want to contribute it, you’re invited to do so 😃Closed in #312.