Closed
Description
This idea was triggered by looking at the implementation of another astrowidgets-conforming API in spacetelescope/jdaviz#705 :
- I think the
offset_to
method is better namedoffset_by
. This aligns better with astropy.coordinates and I think it makes it just a bit clearer that you are giving the delta coordinates instead of actual coordinates - I think we can dispense with the
skycoord_offset
keyword by instead using the units ofdx
/dy
- if they are eitherpixel
or dimensionless that can be interpreted as pixel offsets, and any other unit can assumeSkyCoord
/other WCS ("other wcs" can be implemented in the future, but I'm just trying not to accidentally specify ourselves out of it)
My proposal would be to keep in offset_to
with its current API but have it start raising a deprecation warning (and internally it would call the new offset_by
)
And yes, offset_to
was my original suggestion. But I think it was wrong after seeing it in action!
Metadata
Metadata
Assignees
Labels
No labels