-
Notifications
You must be signed in to change notification settings - Fork 0
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
DM-39138: Fix cp_verify test failures #26
Conversation
…ise isn't correct.
I'm sorry, I don't totally follow what is going on here. A couple lines are deleted but I guess the values come from elsewhere...? |
Previously the code was setting the read noise value used in the test threshold from the as-measured serial overscan residual stdev. These values are in general smaller than the camera defined read noise values, resulting in cases where the measured image noise is smaller than the camera defined read noise, but more than 5% higher than the overscan residual and are marked as failures. I had originally thought this was fine, as the overscan residual stdev is a measurement of the read noise, but I don't think it's valid to do anymore. I think I have three reasons why a fixed read noise is better:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I think I see what's going on, that verify['NOISE']
is the test but verify['READ_NOISE_CONSISTENT']
is just a check?
I think the comments above the tests could be improved based on what you posted in the PR, and make it clear which "test below (that does not trigger failure)" refers to, because there are a lot of tests below.
Significantly updated comments, and I've separated the advisory check in a way that should make it clearer that it is not a critical test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much clearer, thanks. One last question: previously, READ_NOISE_CONSISTENT
was always filled, and now it's only filled if we have RESIDUAL_STDEV
. Just want to confirm that this is okay.
That was intentional, yes. Without the metadata we can't make any claims about the read noise matching, so I felt it was better to just drop it rather than assign any value. |
That's what I figured, and I guess this isn't a required field so nothing will fall down if it's missing? |
Comparing the image statistics against one realization of the read noise isn't correct.