-
Notifications
You must be signed in to change notification settings - Fork 13
Update external postfit functionality #102
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
Conversation
…parameters after loading externalPostfit
…); Add possibility to only load parameters, not covariance from external postfit; always draw zero line in hist plot
lucalavezzo
left a comment
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.
minor comments, I think good to merge if you want
| default=False, | ||
| action="store_true", | ||
| help="Do not profile beta parameters in the postfit (e.g. when using --externalPostfit).", | ||
| ) |
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.
It may be helpful to be more descriptive in this help section (or perhaps start a documentation?), because honestly I don't always follow the intricacies of these settings; in particular, here, I'm not sure what the use case for this is, and even a short sentence to give more context may help the layman user :)
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.
I've modified the help message. In general I agree that we should come up with a better documentation.
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.
So, is this option only about the bin-by-bin parameters ? In that case, what about choosing a name that directly targets that specific use case, e.g. --noPostfitProfileBB or something?
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.
OK, changed
| h_den = h_inclusive | ||
|
|
||
| if diff: | ||
| h0 = hh.addHists(h_num, h_num, scale2=-1) |
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.
I guess you're using this to get an empty histogram with the same size as h_num, does this treat the variances correctly (if that matters)? Depending on the storage type, it may be summing the variances to find the final ones on h0.
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 actually only used to draw the grey line around 1 (or 0 in case the difference is plot), without errors.
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.
But then isn't it more explicit to copy the histogram and set the content to 0 or 1?
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.
It would be the same
bin/rabbit_plot_pulls_and_impacts.py
Outdated
| ), | ||
| error_x=error_x, | ||
| name="Pulls ± Constraints", | ||
| name=f"Pulls ± Constraints ({name})", |
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.
if name is not passed?
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.
Fixed
080f580 to
79ff7ae
Compare
|
I'm also happy, the CI looks good. |
cippy
left a comment
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.
Aside from the minor comments I made, which I leave it to you as you prefer, it is good to merge to me
| h_den = h_inclusive | ||
|
|
||
| if diff: | ||
| h0 = hh.addHists(h_num, h_num, scale2=-1) |
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.
But then isn't it more explicit to copy the histogram and set the content to 0 or 1?
| default=False, | ||
| action="store_true", | ||
| help="Do not profile beta parameters in the postfit (e.g. when using --externalPostfit).", | ||
| ) |
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.
So, is this option only about the bin-by-bin parameters ? In that case, what about choosing a name that directly targets that specific use case, e.g. --noPostfitProfileBB or something?
The externalPostfit functionality is modified such that