Skip to content

Commit

Permalink
Changed EOP display
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleCeresoli committed Jan 9, 2024
1 parent 9cdeab2 commit a633fe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eop/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function Base.show(io::IO, eop::EOPData)
else
println(
io,
"EOPData(filename=\"$(eop.filename), \"beg=\"$(eop.days_UTC[1]) (UTC)\", "*
"end=\"$(eop.days_UTC[end]) (UTC)\")"
"EOPData(filename=\"$(eop.filename)\", from: $(eop.days_UTC[1]) (UTC) to "*
"$(eop.days_UTC[end]) (UTC))"
)
end

Expand Down
4 changes: 4 additions & 0 deletions test/eop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ get_row(data, mjd) = findfirst(x -> x >= mjd, data[:, 1])

eop_load_data!(eop_file, iers2010a)
@test eop_filename() == eop_file

str = "EOPData(filename=\"$eop_file\", from: -10227.5 (UTC) to 8741.5 (UTC))\n"
@test repr(IERSConventions.IERS_EOP_DATA) == str

end

end;

0 comments on commit a633fe5

Please sign in to comment.