Skip to content
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

Correct sky_pos and local_wcs in photon op tests #484

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

welucas2
Copy link
Collaborator

Some of the photon op tests appear not to be self-consistent: the sky_pos and local_wcs are set independently though both should actually be derived from the image's WCS and the object position within it. This wouldn't be an issue except that the incoming PR #424 implements a new XyToV which is self-consistent through use of the img_wcs alone and so breaks the regression tests here. This PR updates the tests to calculate the the sky_pos and local_wcs together from the image_pos and img_wcs.

Note this isn't an issue in the photon ops themselves, just in the test method. This also changes the expected photon position centre in the regression tests from (-564.5, -1431.4) to (-960.28, -308.09). This is borne out in the tests in PR #424 using the new XyToV implementation which preserves these results.

…cs and image_pos. This changes expected values in the regression tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant