question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, Feb 17, 2018

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 a get_times method. Of course if you want to contribute it, you’re invited to do so 😃

0reactions
astrojuanlucommented, Feb 18, 2018

Closed in #312.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found