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

Custom timescales are not supported by Epoch constructors #16

Open
MicheleCeresoli opened this issue Dec 1, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@MicheleCeresoli
Copy link
Member

When a custom timescale is defined, not all the epoch constructors support it:

julia> using Tempo
julia> @timescale ET EphemerisTime

julia> ep = Epoch(12, ET)
2000-01-01T12:00:12.0000 ET

julia> ep = Epoch("12 ET")
ERROR: UndefVarError: `ET` not defined

This is because the constructors look for the timescales that exist within the scope of the package and not those that have been defined outside of it.

@MicheleCeresoli MicheleCeresoli added the bug Something isn't working label Dec 1, 2023
@MicheleCeresoli MicheleCeresoli self-assigned this Dec 1, 2023
@andreapasquale94
Copy link
Member

andreapasquale94 commented Dec 3, 2023

This is for the eval we do have in the Epoch(str::AbstractString) constructor. Investigating how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants