-
Notifications
You must be signed in to change notification settings - Fork 7
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
remove use_theorycovmat key #2216
Conversation
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.
Sorry, I thought you wanted to merge the other PR already!
Please remove the key also from the examples where it is used (data_theory comparison and the pineappl notebook)
@@ -538,14 +538,11 @@ def procs_corrmat(procs_covmat): | |||
def results(dataset: DataSetSpec, pdf: PDF, covariance_matrix, sqrt_covmat): | |||
"""Tuple of data and theory results for a single pdf. The data will have an associated | |||
covariance matrix, which can include a contribution from the theory covariance matrix which | |||
is constructed from scale variation. The inclusion of this covariance matrix by default is used | |||
where available, however this behaviour can be modified with the flag `use_theorycovmat`. | |||
is constructed from scale variation. |
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 this docstring was not true?
But the part of The inclusion of this covariance matrix by default is used
is still true isn't it?
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 didn't trace back how covariance_matrix
and sqrt_covmat
are produced and whether they include the theory covmat or not, but at least the comment about use_theorycovmat
was wrong
I did want to merge that, so thanks for that - I had just forgotten I also wanted to do this. But doesn't really matter that it has it's own PR Good call, I limited my search only to .py files... |
6565a7a
to
85608b6
Compare
This key was only used in a check, where it is forced to be set to true, though an error is raised if this is not the case, so it serves little purpose. Probably a remnant of a time where it could be used to toggle the use of the theory covmat.
85608b6
to
b4c1d07
Compare
I was adding this to #2198 but when I tried to commit I saw that had been merged - I'd still like to add it though
This key was only used in a check, where it is forced to be set to true, though an error is raised if this is not the case, so it serves little purpose. Probably a remnant of a time where it could be used to toggle the use of the theory covmat.