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 rebuild_fits_rec_dtype for shaped columns #213

Merged

Conversation

braingram
Copy link
Collaborator

@braingram braingram commented Sep 20, 2023

stdatamodels.util.rebuild_fits_rec_dtype appears to incorrectly handle unsigned integer columns with shapes. This PR updates rebuild_fits_rec_dtype and adds tests for this error.

Closes #206

Regression tests run with no errors: https://plwishmaster.stsci.edu:8081/blue/organizations/jenkins/RT%2FJWST-Developers-Pull-Requests/detail/JWST-Developers-Pull-Requests/963/pipeline

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)

@braingram braingram force-pushed the rebuild_fits_rec_dtype_shaped branch from e860705 to a098eed Compare September 20, 2023 21:46
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0ed03c2) 64.68% compared to head (e8a83fd) 64.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
+ Coverage   64.68%   64.70%   +0.01%     
==========================================
  Files         102      102              
  Lines        5663     5666       +3     
==========================================
+ Hits         3663     3666       +3     
  Misses       2000     2000              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@braingram braingram force-pushed the rebuild_fits_rec_dtype_shaped branch from a098eed to de4f05c Compare September 20, 2023 21:54
@braingram braingram marked this pull request as ready for review September 21, 2023 02:39
@braingram braingram requested a review from a team as a code owner September 21, 2023 02:39
@braingram braingram force-pushed the rebuild_fits_rec_dtype_shaped branch from de4f05c to 208c876 Compare October 20, 2023 13:52
@braingram braingram force-pushed the rebuild_fits_rec_dtype_shaped branch from 208c876 to bf4056d Compare October 30, 2023 19:35
@braingram braingram force-pushed the rebuild_fits_rec_dtype_shaped branch from bf4056d to e8a83fd Compare December 1, 2023 14:49
@braingram braingram requested a review from hbushouse December 1, 2023 14:49
Copy link
Collaborator

@tapastro tapastro left a comment

Choose a reason for hiding this comment

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

For as much as I understand this (minimally) - LGTM.

@braingram braingram merged commit fc890e4 into spacetelescope:master Dec 1, 2023
20 of 21 checks passed
@braingram braingram deleted the rebuild_fits_rec_dtype_shaped branch December 1, 2023 22:08
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.

Redundant condition in rebuild_fits_rec_dtype
3 participants