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

Add regression tests for propagation and sampling #331

Merged
merged 2 commits into from
Mar 1, 2018

Conversation

astrojuanlu
Copy link
Member

Fix #265 definitively. We now have a way to track which methods work and which don't. I'm very happy that we finally have this working.

@nikita-astronaut as author of #322, do you want to review this?

@ghost ghost assigned astrojuanlu Mar 1, 2018
@ghost ghost added the 2 - In Progress label Mar 1, 2018
Copy link
Contributor

@nikita-astronaut nikita-astronaut left a comment

Choose a reason for hiding this comment

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

Nice tests, I think, especially preserving of geometry

assert_quantity_allclose(iss.raan, res.raan)
assert_quantity_allclose(iss.argp, res.argp)

assert_quantity_allclose((res.epoch - iss.epoch).to(time_of_flight.unit), time_of_flight)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a great idea to test this

@astrojuanlu
Copy link
Member Author

Awesome! I will merge as soon as the CI is happy.

@codecov
Copy link

codecov bot commented Mar 1, 2018

Codecov Report

Merging #331 into master will increase coverage by 0.27%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #331      +/-   ##
==========================================
+ Coverage   80.61%   80.88%   +0.27%     
==========================================
  Files          30       30              
  Lines        1465     1465              
  Branches      114      114              
==========================================
+ Hits         1181     1185       +4     
+ Misses        252      250       -2     
+ Partials       32       30       -2
Impacted Files Coverage Δ
src/poliastro/twobody/propagation.py 95.18% <ø> (+4.81%) ⬆️

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 b856f34...29eadeb. Read the comment docs.

@astrojuanlu astrojuanlu merged commit 53ebfc2 into poliastro:master Mar 1, 2018
@astrojuanlu astrojuanlu deleted the propagation-regression branch March 1, 2018 13:25
@ghost ghost removed the 2 - In Progress label Mar 1, 2018
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