Skip to content

JP-4240: Add inverse coeffs to linearity model#749

Draft
tapastro wants to merge 2 commits into
spacetelescope:mainfrom
tapastro:jp-4240-invlin-coeffs
Draft

JP-4240: Add inverse coeffs to linearity model#749
tapastro wants to merge 2 commits into
spacetelescope:mainfrom
tapastro:jp-4240-invlin-coeffs

Conversation

@tapastro

Copy link
Copy Markdown
Collaborator

Partially resolves JP-4240

Closes #

This PR adds storage capability for inverse coefficients in the linearity model.

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

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.71%. Comparing base (df8e130) to head (8d360fc).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #749   +/-   ##
=======================================
  Coverage   90.71%   90.71%           
=======================================
  Files          99       99           
  Lines        4597     4597           
=======================================
  Hits         4170     4170           
  Misses        427      427           

☔ 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.

@tapastro tapastro force-pushed the jp-4240-invlin-coeffs branch from fac89b0 to 523f946 Compare June 1, 2026 16:22
datatype: float32
inv_coeffs:
title: Inverse linearity coefficients
fits_hdu: INV_COEF

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the attribute is inv_coeffs, should we name the FITS HDU INV_COEFFS, paralleling the coeffs attribute/HDU? I don't feel strongly about it, but I was initially surprised by the COEF spelling.

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.

2 participants