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

feat: updated validation script to check partial bin sums #171

Merged
merged 6 commits into from
Jul 4, 2023

Conversation

ekauffma
Copy link
Collaborator

This is an attempt to address #168 . If adjacent bins are similar enough, the partial sum of the affected bins is compared. This will ensure that one event migrating across bins will not flag as an error. Maybe we can test this with RDF implementation (@andriiknu)

@alexander-held @eguiraud

@ekauffma ekauffma marked this pull request as ready for review June 29, 2023 09:33
Copy link
Contributor

@eguiraud eguiraud left a comment

Choose a reason for hiding this comment

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

thanks @ekauffma , I would have approved the PR but I don't have enough permission to do so, I can only comment 😄

I could not completely follow the logic in my head, so sorry if some of the comments don't make sense. Even with the comments, that you can feel free to disregard, this overall LGTM.

analyses/cms-open-data-ttbar/validate_histograms.py Outdated Show resolved Hide resolved
analyses/cms-open-data-ttbar/validate_histograms.py Outdated Show resolved Hide resolved
analyses/cms-open-data-ttbar/validate_histograms.py Outdated Show resolved Hide resolved
analyses/cms-open-data-ttbar/validate_histograms.py Outdated Show resolved Hide resolved
analyses/cms-open-data-ttbar/validate_histograms.py Outdated Show resolved Hide resolved
@ekauffma
Copy link
Collaborator Author

@eguiraud I made a lot of edits inspired by your suggestions. I would appreciate if you would read again and let me know if you find it easier to follow now! Thank you

Copy link
Contributor

@eguiraud eguiraud left a comment

Choose a reason for hiding this comment

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

Looks great!! Took me less than 10 minutes to go through. What I didn't understand yesterday was "(to form groupings of bins based on location)" 😬 😅

analyses/cms-open-data-ttbar/validate_histograms.py Outdated Show resolved Hide resolved
Copy link
Member

@alexander-held alexander-held left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for adding this!

@alexander-held alexander-held changed the title updated validation script to check partial bin sums feat: updated validation script to check partial bin sums Jul 4, 2023
@alexander-held alexander-held merged commit c33e6a0 into iris-hep:main Jul 4, 2023
eguiraud pushed a commit to eguiraud/analysis-grand-challenge-coffea that referenced this pull request Jul 19, 2023
* updated validation script to check partial bin sums
* added verbose flag
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.

3 participants