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

Fix issue with bounding box when creating WCS for tests. #181

Merged
merged 29 commits into from
Aug 2, 2023

Conversation

mairanteodoro
Copy link
Collaborator

@mairanteodoro mairanteodoro commented Jul 18, 2023

This PR addresses an issue when creating a WCS object for the tests.

The coordinates of the vertices of the bounding box region for the WCS object used in the tests were wrongly specified as the center of the pixels instead of the corner (as expected when calling wcs_from_footprint). This PR fixes the unit tests.

Checklist

  • added entry in CHANGES.rst (either in Bug Fixes or Changes to API)
  • updated relevant tests
  • updated relevant documentation
  • updated relevant milestone(s)
  • added relevant label(s)

mairanteodoro and others added 29 commits July 6, 2023 16:49
* Add setting of number_extended_events

This was not being set when in single processing mode.

* Update CHANGES.rst

* Update CHANGES.rst

* Update test_jump.py

---------

Co-authored-by: Howard Bushouse <bushouse@stsci.edu>
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02 ⚠️

Comparison is base (dc47316) 74.95% compared to head (b97a839) 74.94%.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           stcal-alignment     #181      +/-   ##
===================================================
- Coverage            74.95%   74.94%   -0.02%     
===================================================
  Files                   32       32              
  Lines                 6202     6198       -4     
===================================================
- Hits                  4649     4645       -4     
  Misses                1553     1553              
Impacted Files Coverage Δ
tests/test_alignment.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mairanteodoro mairanteodoro marked this pull request as ready for review July 18, 2023 17:19
@mairanteodoro mairanteodoro requested a review from a team as a code owner July 18, 2023 17:19
Copy link
Collaborator

@kmacdonald-stsci kmacdonald-stsci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR associated with formal issue or just one noticed during testing? If a formal issue, please link it. Otherwise, this looks good.

@mairanteodoro
Copy link
Collaborator Author

Is this PR associated with formal issue or just one noticed during testing? If a formal issue, please link it. Otherwise, this looks good.

@kmacdonald-stsci This is a fix for an issue noticed recently during testing.

Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. @nden what say you?

@hbushouse
Copy link
Collaborator

@nden can you give this final approval from the standpoint of "WCS czar"?

@nden
Copy link
Collaborator

nden commented Aug 2, 2023

@mairanteodoro and I need to talk about this before merging.

@nden nden merged commit f03a11c into spacetelescope:stcal-alignment Aug 2, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants