-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add a test for all commondata files #1994
Conversation
ce33c1a
to
d1f1f2a
Compare
8349c67
to
821fdfc
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.
Seems fine to me!
I can't think of an important check that's missing. If you really wanted there are some more checks on the metadata you could add, but since the checks you can do will never cover all mistakes someone implementing a dataset can make it may become a bit random and pointless.
@@ -159,7 +160,8 @@ def _hqp_yq_xq2map(kin_dict): | |||
|
|||
def _hqp_yqq_xq2map(kin_dict): | |||
# Compute x, Q2 | |||
ratio = np.sqrt(kin_dict[_Vars.m_t2]) / kin_dict[_Vars.sqrts] | |||
mass2 = _get_or_fail(kin_dict, [_Vars.m_t2, _Vars.m_ttBar]) |
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.
Why do you do _get_or_fail
here but not for the variables?
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 others will fail if they are not there (because it's a dict). It's just a way of having some general control over the situation of having more than one possibility for one variable. Although right now is basically a dictionary.get with a fallback
Co-authored-by: Roy Stegeman <roystegeman@live.nl>
2ce705c
to
1fe20fa
Compare
I am skipping the error due to #1991 since I guess that will take some time (and better to have some testing as soon as possible).
I am checking:
HQP_MQQ
andINC
are not implemented inprocess_options
#1991)stat
key is correctly usedMULT
orADD
All of this is checked for all datasets and variant regardless of whether they have a theory or not.
Any other ideas for things to test?
This closes #1990
(the current failure is for a fix already in master, will rebase)