Astropy: SkyCoord Constructs frames with distance=1*u.one rather than UnitSphericalRepresentation

Created on 28 Feb 2018  ·  3Comments  ·  Source: astropy/astropy

doing:

SkyCoord(UnitSphericalRepresentation(1*u.deg, 1*u.deg))

passes a distance=1*u.one to the frame constructor, where as it should not pass distance at all to the frame so it constructs UnitSphericalRepresentation.

This causes a lot of problems in sunpy since this commit.

coordinates

Most helpful comment

sssshhhhhh :p

All 3 comments

Wait a minute, you wrote that commit... :wink:

sssshhhhhh :p

An alternative discussed with @adrn at pyastro18 is to change what "unit" means so that SunPy could default to RSun rather than 1*u.one.

Was this page helpful?
0 / 5 - 0 ratings