-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imviz helper: rename offset_to
to offset_by
and have it use units
#705
Comments
Re: to vs by -- That is inherited from both astrowidgets and your original idea. If you want to rename it, it has to happen in astrowidgets first. |
As for changing the API, I think it also has to happen in astrowidgets? |
Yeah I suspect it was my fault 😉, but I do think this is a good opportunity to review these decisions. I'd argue for this:
|
Although, maybe I should have reversed the order? I guess I could see it either way, depending on what you think @pllim |
As discussed offline, I prefer the change to happen upstream first, so we do not set the precedence that it is okay to diverge from the |
This is a simple follow-on from #687 - I failed to review in time, but fortunately had one-and-a-half minor change to sugges (i.e., just changes in offset_to):
offset_to
helper method on Imviz 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 coordinatesskycoord_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)The text was updated successfully, but these errors were encountered: