fixed bug following from introduction of parse_fakepdf in config.py#1654
Conversation
|
Do we need to parse the pdf again or can we set it to the value we already get? |
RoyStegeman
left a comment
There was a problem hiding this comment.
Thanks for pointing this out. I agree with Zahari, I don't see why we need to parse it seperately in each function, in this case we should just use the pdf directly.
|
Thank you for the comments. The new commit should do so. The fakepdf stored in datacuts is taken instead of parsing it again. |
What problems are you anticipating? I guess that function would be used to calculate closure test estimators such as these: https://vp.nnpdf.science/5m-aHiGmRVGsOjeZ58AtyA==/ which are based on multiple fits (25 in this case) and to correctly evaluate these estimators the underlying law for each of the fits needs to have been the same. |
…e.PDF object and already parsed
…nto fakepdf_bug_vp_comparefits minor modification in validphys.config.produce_fitunderlyinglaw
I guess the problem could be that I think one could just do the following change: |
|
Did you try? I don't think it's a problem here because the |
|
Yes, I agree with you. Thanks for the comment. I think with the last commit the branch can be merged |
RoyStegeman
left a comment
There was a problem hiding this comment.
Looks good. Thanks for spotting this!
|
Thanks both! |
Because of the introduction of the parse_fakepdf method in config.py, the val corresponding to the "fakepdf" key of the datacuts dict in produce_fitunderlyinglaw function is not type str anymore but core.PDF. This leads to an error when running vp-comparefits:
[ERROR]: Bad configuration encountered:
Bad input type for parameter 'pdf': Value 'NNPDF40_nnlo_as_01180' is not of type str, but of type 'PDF'.