Skip to content

Commit

Permalink
astropy tests for SuperGalCoords
Browse files Browse the repository at this point in the history
  • Loading branch information
LudwigBoess committed Feb 24, 2023
1 parent 917a43b commit 237948d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/astropy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const lats = pi .* (rand(rng, N) .- 0.5) # (-π, π)
astropy_conversion(::Type{<:ICRSCoords}) = apc.ICRS
astropy_conversion(::Type{<:FK5Coords{F}}) where {F} = apc.FK5(equinox="J$F")
astropy_conversion(::Type{<:GalCoords}) = apc.Galactic
astropy_conversion(::Type{<:SuperGalCoords}) = apc.Supergalactic
astropy_conversion(::Type{<:EclipticCoords{F}}) where {F} = apc.GeocentricMeanEcliptic(equinox="J$F")

function test_against_astropy(intype, outtype; atol=0)
Expand Down Expand Up @@ -48,6 +49,7 @@ end
FK5Coords{2000,F},
FK5Coords{1975,F},
GalCoords{F},
SuperGalCoords{F},
EclipticCoords{2000,F},
EclipticCoords{1975,F},
)
Expand Down

0 comments on commit 237948d

Please sign in to comment.