JuliaAstro / AstroTime.jl

Astronomical time keeping in Julia
https://juliaastro.github.io/AstroTime.jl/stable/
Other
39 stars 10 forks source link

Dat #31

Closed prakharcode closed 6 years ago

prakharcode commented 6 years ago

Ported dat into leapseconds

giordano commented 6 years ago

A couple of general comments: do not parenthesize conditions; also errors should be covered by the tests.

helgee commented 6 years ago

Sorry @prakharcode for not raising this issue beforehand but a straight port from C won't cut it here. Most of the things that ERFA.dat does are already avaiable in the leapseconds method, see here: https://github.com/JuliaAstro/AstroTime.jl/blob/master/src/LeapSeconds.jl#L38

The best approach would thus be to replace the call to ERFA.dat in the branch at line 42 with ported code.

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 188


Totals Coverage Status
Change from base Build 181: 0.1%
Covered Lines: 344
Relevant Lines: 393

💛 - Coveralls
codecov-io commented 6 years ago

Codecov Report

Merging #31 into master will increase coverage by 0.12%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage    87.4%   87.53%   +0.12%     
==========================================
  Files           7        7              
  Lines         389      393       +4     
==========================================
+ Hits          340      344       +4     
  Misses         49       49
Impacted Files Coverage Δ
src/Epochs.jl 97.14% <ø> (ø) :arrow_up:
src/conversions.jl 99.17% <ø> (ø) :arrow_up:
src/LeapSeconds.jl 100% <100%> (ø) :arrow_up:

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 3799fae...ac3bc8c. Read the comment docs.

helgee commented 6 years ago

I will merge this as it is and propose a few improvements in a new PR. Thanks @prakharcode 👍

prakharcode commented 6 years ago

Thank you :smile: