Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Rewrite the whole thing based on a high-accuracy epoch type #43

Merged
merged 46 commits into from
Aug 28, 2018

Conversation

helgee
Copy link
Member

@helgee helgee commented Jul 1, 2018

I got started with a new accuracy-preserving type. The design is based on the AbsoluteDate class from Orekit: https://github.com/CS-SI/Orekit/blob/develop/src/main/java/org/orekit/time/AbsoluteDate.java

EDIT: This is basically a straight port of Orekit's time package. Imitation is the sincerest form of flattery 😉

CC: @bgodard, @giordano, @prakharcode

ToDo

  • String I/O
  • Periods & comparisons
  • Leap seconds
  • Ranges
  • Lots of tests
  • Remove old code
  • Docs

@codecov-io
Copy link

codecov-io commented Jul 1, 2018

Codecov Report

Merging #43 into master will increase coverage by 4.92%.
The diff coverage is 89.84%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #43      +/-   ##
=========================================
+ Coverage   87.38%   92.3%   +4.92%     
=========================================
  Files           7       7              
  Lines         539     169     -370     
=========================================
- Hits          471     156     -315     
+ Misses         68      13      -55
Impacted Files Coverage Δ
src/Periods.jl 100% <ø> (+13.04%) ⬆️
src/offsets.jl 100% <100%> (ø)
src/leapseconds.jl 100% <100%> (ø)
src/AstroTime.jl 100% <100%> (ø) ⬆️
src/accessors.jl 75% <75%> (ø)
src/AstroDates.jl 85.24% <85.24%> (ø)
src/Epochs.jl 94.73% <94.73%> (-2.41%) ⬇️
... and 2 more

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 d82fc87...e33f310. Read the comment docs.

test/epochs.jl Outdated
ep1 = Epoch2{TDB}(ep, -Inf)
@test ep1.epoch == typemin(Int64)
@test ep1.offset == -Inf
end
Copy link
Member

Choose a reason for hiding this comment

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

New line at the end of the file 🙂

src/Epochs2.jl Outdated

Epoch2{S}(ep::Epoch2{S}, Δt) where {S} = Epoch2{S}(ep.epoch, ep.offset, Δt)

end
Copy link
Member

Choose a reason for hiding this comment

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

Missing newline at the end of the file (or extra empty incomplete line) 🙂

@helgee helgee requested a review from giordano August 5, 2018 21:09
@helgee helgee changed the title [WIP] Add new high-accuracy epoch type [WIP] Rewrite the whole thing based on a high-accuracy epoch type Aug 13, 2018
@helgee
Copy link
Member Author

helgee commented Aug 13, 2018

@giordano Do you happen to know how one overloads the colon operator?

@giordano
Copy link
Member

It used to be lowered to the colon function in previous versions, now it should be lowered to a function called : according to the release notes.

@helgee
Copy link
Member Author

helgee commented Aug 28, 2018

...and we have ranges 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants