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

remove use_theorycovmat key #2216

Merged
merged 3 commits into from
Nov 18, 2024
Merged

remove use_theorycovmat key #2216

merged 3 commits into from
Nov 18, 2024

Conversation

RoyStegeman
Copy link
Member

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.

Copy link
Member

@scarlehoff scarlehoff left a 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.
Copy link
Member

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?

Copy link
Member Author

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

@RoyStegeman
Copy link
Member Author

RoyStegeman commented Nov 18, 2024

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...

@RoyStegeman RoyStegeman force-pushed the update_th_covmat branch 2 times, most recently from 6565a7a to 85608b6 Compare November 18, 2024 16:48
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.
@RoyStegeman RoyStegeman merged commit 541ab4d into master Nov 18, 2024
6 checks passed
@RoyStegeman RoyStegeman deleted the update_th_covmat branch November 18, 2024 19:16
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.

2 participants