Skip to content

Fix handling of logical int8 columns#738

Merged
braingram merged 5 commits into
spacetelescope:mainfrom
braingram:fits_rec_int8
May 11, 2026
Merged

Fix handling of logical int8 columns#738
braingram merged 5 commits into
spacetelescope:mainfrom
braingram:fits_rec_int8

Conversation

@braingram
Copy link
Copy Markdown
Collaborator

@braingram braingram commented May 11, 2026

Closes #735

Logical/int8 columns are causing warnings for astropy dev and do not work as expected (see above issue).

Update handling of structured arrays/fits_rec with logical/int8 columns copying data where needed to handle the mismatch between numpy bool storage and astropy/fits logical bool mapping.

Regtests: https://github.com/spacetelescope/RegressionTests/actions/runs/25576691180/job/75368198893

github is having issues so CI is unreliable. Will trying to restart some tests.

Tasks

  • update or add relevant tests
  • update relevant docstrings and / or docs/ page
  • Does this PR change any API used downstream? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see below for change types)
    • run jwst regression tests with this branch installed ("git+https://github.com/<fork>/stdatamodels@<branch>")
news fragment change types...
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.76%. Comparing base (3c7af31) to head (9454993).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #738      +/-   ##
==========================================
+ Coverage   90.74%   90.76%   +0.01%     
==========================================
  Files          99       99              
  Lines        4570     4578       +8     
==========================================
+ Hits         4147     4155       +8     
  Misses        423      423              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@braingram braingram marked this pull request as ready for review May 11, 2026 16:22
@braingram braingram requested a review from a team as a code owner May 11, 2026 16:22
Copy link
Copy Markdown
Contributor

@emolter emolter 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 overall but I had a question

Comment thread tests/jwst/datamodels/test_models.py Outdated
Comment thread tests/schemas/table_model.yaml
Copy link
Copy Markdown
Contributor

@emolter emolter left a comment

Choose a reason for hiding this comment

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

This looks good to me until we can remove fits_rec entirely

@braingram braingram merged commit 9657cdb into spacetelescope:main May 11, 2026
28 checks passed
@braingram braingram deleted the fits_rec_int8 branch May 11, 2026 20:05
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.

devdeps failures

2 participants