JuliaAstro / AstroTime.jl

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

Redesign of `AstroPeriod` née `Period` and other small refactorings #63

Closed helgee closed 3 years ago

helgee commented 3 years ago

Successful "Conference-Driven Development" 🤣

This a redesign of the AstroPeriod (formerly known as Period) type which makes it more compatible with the Epoch data model and also enables it to track its associated floating point error.

struct AstroPeriod{U<:TimeUnit, T}
    unit::U
    second::Int64
    fraction::T
    error::T
end