-
Notifications
You must be signed in to change notification settings - Fork 28
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
implement transforms to/from sky coordinates #177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me, but I'll tag @mfixstsci to be the final reviewer since he's the new owner of this repo
Thanks @shanosborne. And yes I know @mfixstsci is now the new owner, but I wanted to tag you and Tony for your potential inputs first since we had chatted about this on Slack. Much appreciated for pointing me in the right direction! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mperrin Just to double check, there are already "tel_to_sky" and "sky_to_tel" methods in pysiaf.utils.rotation, but you wanted to bring this functionality to the aperture class, correct?
@tonysohn Correct! And I do so by having the aperture class call those existing methods with appropriate parameters. |
@tonysohn To expand a bit more, what I most wanted was to be able to use those |
Okay, that makes perfect sense. I also approve this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
hi @mfixstsci - I wanted to check in about a possible timescale for this review, please, since it's been a week since I filed this. It would be nice to get this merged in soon enough if possible, since this functionality is needed for a new tool that some of us are starting to use for commissioning rehearsals (see https://github.com/spacetelescope/jwst_visit_viewer). This should be a pretty straightforward PR to review I hope! Thanks and cheers. |
@mperrin I will get to it today, sorry for the delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @mfixstsci! I think you will also need to merge this - I don't have permission on this repo. :-) |
Hey @mperrin I am okay with that too. I am seeing there is a block because there are some issues with the continuous integration build. I will investigate it. |
Should this also have the CI backend migrated from Travis to Github actions? We recently did that for webbpsf and poppy. Well, we = @shanosborne in that case, not me. |
@mperrin Looks like travis is stopping it's service tomorrow (was planned for June 1st). I don't know if they are slowly winding down certain repositories because I can't kick the builds back off. The builds failed here (https://travis-ci.com/spacetelescope/pysiaf), I don't know exactly why though. I can continue to look into it but I would suggest we merge the GHA pull request, then rebase this branch and then merge this branch into |
Hi @mfixstsci let me suggest please we instead separate this PR from the (unrelated) CI issues entirely, by just running the tests locally to verify they pass (they do) and then going ahead and merging this PR. That way we can merge this without having to first deal with the CI migration. In particular I would really appreciate if we could get this merged within the next day or two, because of the JWST LRE4 exercise this week. Several of the SI teams are interested in testing out a visit viewer tool that depends on this added functionality, so it would be very good if we can get this merged in sooner rather than later. Hopefully the CI switch can go smoothly but in my experience it's been the sort of task that always surprises how long it takes to get the details just right... |
@mperrin okay I just ran the tests locally on this branch and they passed. That with the approvals, I will merge it now. |
Following up our conversation in slack - this PR adds transformations to/from the
sky
coordinate system. The actual transforms are implemented via calls to therotations.sky_to_tel
andtel_to_sky
transforms, wrapped into similarly named methods on theAperture
class.PR should be pretty self-explanatory, hopefully. I included some basic documentation and a unit test too.