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-30170: Define crosstalk tests for cp_verify #15

Merged
merged 7 commits into from May 10, 2022
Merged

Conversation

czwa
Copy link
Collaborator

@czwa czwa commented Apr 21, 2022

Add task to run validation against a calibration instead of against processed exposures, and subclass that for crosstalk.
Add unit test and example notebooks.

@czwa czwa requested a review from erykoff April 21, 2022 21:42
Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

In my reading the code doesn't match the docstrings. Am I missing something?

"""
outputStats = {}

outputStats['DETECTOR'] = self.detectorStatistics(inputCalib)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see how this could create a dict that resolves to the yaml described in the docstring. Roots would be DETECTOR, VERIFY, SUCCESS, and not AMP, DET, CATALOG.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also below there's something about N_VALID?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a copy from the CpVerifyStatsTask block, and I forgot to clean it up to match reality. I've removed the entries that do not exist, and renamed DETECTOR to DET to match how verifyStats names things. N_VALID is one of the STAT entries, and I've updated the text to note that.

VERIFY_SIGMA: boolean
DetectorId2:
[...]
MEAN_UNIMODAL: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do these UNIMODAL values come from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That was me confusing myself by copying a docstring and incompletely editing it. The new docstring now represents what is actually constructed, and use generic TEST_VALUE style names.

@czwa czwa merged commit bc8d279 into main May 10, 2022
@czwa czwa deleted the tickets/DM-30170 branch May 10, 2022 20:31
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