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-30174: Define linearity tests for cp_verify #22
Conversation
cf65c89
to
589274d
Compare
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.
A few minor things.
doc="Expected amplitude of second-order non-linearity coefficient, if polynomial.", | ||
default=1e-6, | ||
) | ||
maxResidualThresoldTable = pexConfig.Field( |
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.
Typo in Threshold
. There's probably a matching one below.
outputStatistics : `dict` [`str`, scalar] | ||
A dictionary of the statistics measured and their values. | ||
""" | ||
calibMetadata = inputCalib.getMetadata().toDict() |
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.
You can access elements directly from the metadata, so there's no need to convert to a dict
here.
""" | ||
verifyStats = {} | ||
success = True | ||
calibMetadata = calib.getMetadata().toDict() |
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.
And here.
# signal | ||
delta = calib.tableData[indexTableAmp, :][1:] / indices | ||
maxError = np.max(np.abs(delta)) | ||
verify['MAX_RESIDUAL_ERROR'] = bool(maxError <= self.config.maxResidualThresoldTable) |
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.
The matching Threshold
.
Fix flake 8 errors
Fix linter errors. Fix typos.
Fix linter error.
589274d
to
9873472
Compare
No description provided.