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

VaryingCelestialTransform fix and unit tests #285

Merged
merged 6 commits into from
Aug 7, 2023

Conversation

svensk-pojke
Copy link
Contributor

@svensk-pojke svensk-pojke commented Aug 3, 2023

Fixed coordinate reversal in VaryingCelestialTransformSlit2D._map_transform().

Rewrote vct unit tests and ensured both imager and slit classes have 1D - 3D LUT table support and full round-trip tests for the entire pixel table.

Minor cleanup and reformatting.

It is acknowledged that massive code duplication exists in the vct classes and unit tests. However, this is temporary, as the refactor of the vct classes, which I am embarking on soon, will remediate this problem. a shared test fixture could reduce the code duplication in the unit tests, it is not worth the effort to implement at this point.

…nsform().

Rewrote cvt unit tests and ensured both imager and slit classes have 1D - 3D LUT table support and full round-trip tests for the entire pixel table.
Minor cleanup and reformatting.
@svensk-pojke svensk-pojke requested a review from Cadair August 3, 2023 20:00
@svensk-pojke svensk-pojke self-assigned this Aug 3, 2023
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #285 (46e6977) into main (534f02e) will increase coverage by 0.76%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #285      +/-   ##
==========================================
+ Coverage   96.75%   97.51%   +0.76%     
==========================================
  Files          40       40              
  Lines        2400     2412      +12     
==========================================
+ Hits         2322     2352      +30     
+ Misses         78       60      -18     
Files Changed Coverage Δ
dkist/wcs/models.py 100.00% <100.00%> (+3.22%) ⬆️

@Cadair Cadair added this to the v1.0.0 milestone Aug 4, 2023
svensk-pojke and others added 3 commits August 4, 2023 09:40
Added shape error tests for 3D vcts.
Renamed some variables o be more meaningful.
@Cadair Cadair merged commit df0724f into main Aug 7, 2023
@Cadair Cadair deleted the time_varying_transform_fix branch August 7, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants