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

Make var_flat optional. #1438

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

schlafly
Copy link
Collaborator

@schlafly schlafly commented Oct 4, 2024

This PR makes the ELP not compute var_flat by default for individual exposures. It adds a new keyword "include_var_flat" to the flat field step spec to enable including the flat field variances, with a default value of False---we will not by default compute var_flat. It adds tests to make sure that this keyword is being followed.

Together with spacetelescope/rad#462, it makes the mosaic pipeline either create a var_flat extension or not, depending on whether the input exposures contain var_flat. If not all of the input exposures include var_flat, it will not compute var_flat in the output.

This will lead to changes in the regression tests, since we will not be computing var_flat by default. The derived errors will also be different. If we update the exposures used as input for the mosaic pipeline to not include flat variances, the derived mosaics will also be different.

"err" will no longer include a contribution from var_flat by default, in either the exposures or eventually the mosaics. In principle we could include var_flat in "err" but still delete var_flat by default. This seems a little perverse to me, but I mention it as a possibility.

It makes a handful of forward-looking changes to the regression tests, essentially not requiring that var_flat exist.

@tddesjardins , @hcferguson, you've expressed opinions about removing this in the past; care to weigh in?

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 below for change types)
    • 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

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.00%. Comparing base (8601da8) to head (9eaecf7).
Report is 4 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (8601da8) and HEAD (9eaecf7). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (8601da8) HEAD (9eaecf7)
1 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1438       +/-   ##
===========================================
- Coverage   78.38%   62.00%   -16.38%     
===========================================
  Files         118       76       -42     
  Lines        7680     3190     -4490     
===========================================
- Hits         6020     1978     -4042     
+ Misses       1660     1212      -448     
Flag Coverage Δ *Carryforward flag
nightly 62.00% <ø> (-0.12%) ⬇️ Carriedforward from f9ebf61

*This pull request uses carry forward flags. Click here to find out more.

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

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Oct 4, 2024
@schlafly schlafly marked this pull request as draft October 4, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation flatfield pipeline regression_testing testing Wide Field Instrument (WFI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant