-
Notifications
You must be signed in to change notification settings - Fork 5
[WIP] Branch for closure test chi2 table #109
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
base: main
Are you sure you want to change the base?
Conversation
validphys2/src/validphys/core.py
Outdated
| fktable = p.load() | ||
| except Exception as e: | ||
| from validphys.pineparser import pineappl_reader | ||
| fktable = pineappl_reader(p) |
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 think that a fix would be here, I am not sure how to load the FK-table when it is a new pineappl format as p.load() currently gives an error. I believe this is because p.load() gives an object of type class 'NNPDF.nnpdf.FKTable' for appl tables but pineappl_reader(p) gives a the FKdata as a type 'validphys.coredata.FKTableData', this then causes an error when creating the FK set
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 for the delta_chi2_table function but it unnecessary for the new write_datasets_chi2_csv function
This branch edits$\chi^2$ per dataset using contaminated level 0 data and predictions produced with fitted PDF and mean BSM factors.
simunet_analysis.pyto include awrite_datasets_chi2_csvvalidphys function which calculates theThe
load_datasets_contaminationfunction is also edited to be able to handle multiple contamination parameters.To do:
This is added here as the
delta_chi2_tablefunction is unable to read pineapple FK-tables as below:When trying to produce a chi2 table for a closure test fit, I get this error when loading the underlying pdf in
produce_fitunderlyinglaw:After editing this function to parse this, I then receive an error when trying to load the new pineapple FK-tables, I have been trying to edit this to work around this bug but haven't yet found a full solution. With this current branch I am getting this error:
I was wondering if anyone might know a cleaner way to load the new FK-tables here as it might have been done before.
For reference, this is the runcard I am using: