astropy-APEs icon indicating copy to clipboard operation
astropy-APEs copied to clipboard

APE26: Removing data storage (representations) from coordinate frames

Open jeffjennings opened this issue 1 year ago • 27 comments

Coordinate frames in astropy.coordinates currently store metadata used to construct the frame (i.e. for transforming between frames) and may also store coordinate data itself. This duplicates functionality with SkyCoord, which acts as a container for both coordinate data and reference frame information. We propose to change the frame classes such that they only store metadata and never coordinate data. This would make the implementation more modular, remove ambiguity for users from having nearly duplicate functionality with slightly different APIs, and better satisfy the principle of Separation of Concerns.

Authors of this APE (alphabetical): Jeff Jennings @jeffjennings, Adrian Price-Whelan @adrn, Nathaniel Starkman @nstarman, Marten van Kerkwijk @mhvk

jeffjennings avatar Nov 04 '24 17:11 jeffjennings