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

DM-30174: Define linearity tests for cp_verify #22

Merged
merged 11 commits into from Feb 27, 2023
Merged

Conversation

plazas
Copy link
Contributor

@plazas plazas commented Feb 14, 2023

No description provided.

Copy link
Collaborator

@czwa czwa left a 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(
Copy link
Collaborator

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()
Copy link
Collaborator

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()
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The matching Threshold.

@plazas plazas merged commit ec0dc90 into main Feb 27, 2023
@plazas plazas deleted the tickets/DM-30174 branch February 27, 2023 23:46
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.

None yet

2 participants