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

Add frame zero effects. #130

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Add frame zero effects. #130

merged 4 commits into from
Jul 3, 2024

Conversation

schlafly
Copy link
Collaborator

@schlafly schlafly commented Jul 2, 2024

Adds correlated noise across all reads associated with noise in the reference read (frame zero), which is subtracted from all subsequent reads.

A new parameter, pedestal_extra_noise, is added, with a default value of 4 DN. Noise is added to all resultants in each pixel with amplitude equal to the quadrature sum of the pixel's read noise and the extra pedestal noise.

This noise is degenerate with the pedestal and so doesn't meaningfully affect final ramp measurements at present.

We use a separate RNG so that pedestal noise can be turned on and off without affecting the rest of the random numbers in the simulation.

I also added corresponding tests.

@schlafly schlafly requested a review from a team as a code owner July 2, 2024 18:23
@schlafly
Copy link
Collaborator Author

schlafly commented Jul 2, 2024

@PaulHuwe , want to take a look?

Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.94%. Comparing base (0a1aac5) to head (fef50a8).
Report is 62 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
+ Coverage   90.78%   90.94%   +0.16%     
==========================================
  Files          17       17              
  Lines        1671     1701      +30     
==========================================
+ Hits         1517     1547      +30     
  Misses        154      154              

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

Copy link
Collaborator

@PaulHuwe PaulHuwe left a comment

Choose a reason for hiding this comment

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

LGTM

@schlafly schlafly merged commit b3de33f into spacetelescope:main Jul 3, 2024
22 checks passed
@schlafly schlafly deleted the framezero branch July 3, 2024 17:44
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