Skip to content

Updated timing pattern#2316

Open
t-brandt wants to merge 14 commits into
spacetelescope:mainfrom
t-brandt:refine_timing
Open

Updated timing pattern#2316
t-brandt wants to merge 14 commits into
spacetelescope:mainfrom
t-brandt:refine_timing

Conversation

@t-brandt
Copy link
Copy Markdown
Contributor

@t-brandt t-brandt commented May 8, 2026

Closes #

This PR improves the timing pattern for the detectors, primarily for the purpose of making the WFI18 transient correction more accurate. The approach implemented is almost as accurate as using the guide window MA tables, but avoids having to read these reference files in for now. There is a fudge factor of 1.5 passed to the timing pattern to account for the fact that the WFI18 transient decays slightly more quickly when reading out the guide window.

Tasks

  • request a review from someone specific, to avoid making the maintainers review every PR
  • add a build milestone, i.e. 24Q4_B15 (use the latest build if not sure)
  • Does this PR change user-facing code / API? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see changelog readme for instructions)
      • if your change breaks existing functionality, also add a changes/<PR#>.breaking.rst news fragment
    • update or add relevant tests
    • update relevant docstrings and / or docs/ page
    • start a regression test and include a link to the running job (click here for instructions)
      • Do truth files need to be updated ("okified")?
        • after the reviewer has approved these changes, run okify_regtests to update the truth files
  • if a JIRA ticket exists, make sure it is resolved properly

@t-brandt t-brandt requested review from a team and ddavis-stsci as code owners May 8, 2026 06:02
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.58%. Comparing base (1937ff3) to head (d8346c0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2316      +/-   ##
==========================================
+ Coverage   80.55%   80.58%   +0.02%     
==========================================
  Files         155      155              
  Lines        9398     9409      +11     
==========================================
+ Hits         7571     7582      +11     
  Misses       1827     1827              

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

@schlafly
Copy link
Copy Markdown
Collaborator

schlafly commented May 8, 2026

Thanks Tim. There's a missing definition of npad that is breaking the tests. The logic here has gotten involved enough that some testing probably makes sense but I'll defer to you, thanks.

@schlafly schlafly added this to the 26Q3_B22 milestone May 8, 2026
@schlafly
Copy link
Copy Markdown
Collaborator

schlafly commented May 11, 2026

Running regression tests here: https://github.com/spacetelescope/RegressionTests/actions/runs/25677644827 . They show some minor differences ~everywhere due to the dark decay step being an early step, and this timing pattern affecting the dark decay step.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 11, 2026
@schlafly
Copy link
Copy Markdown
Collaborator

This has minor impacts across a lot of regtest files, that get amplified by bad linearity corrections. The only ones that are actually noticeable are on WFI18, which has the effect that depends sensitively on the timing pattern. There we see the expected 256 pixel pattern. Approving and merging.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation testing Wide Field Instrument (WFI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants