HEP-PBSP / SIMUnet

The public code for SIMUnet, a NNPDF based tool to perform simultaneous determination of PDFs and EFT Wilson coefficients.
https://hep-pbsp.github.io/SIMUnet/
GNU General Public License v3.0
2 stars 2 forks source link

`load_commondata`, `level0_commondata_wc`, and `make_level1_data` #69

Closed FrancescoMerlotti closed 3 months ago

FrancescoMerlotti commented 4 months ago
  1. added load_commondata to validphys2/src/validphys/core.py
  2. added level0_commondata_wc and make_level1_data to validphys2/src/validphys/pseudodata.py to use chi2_provider.py which needs the two functions added in validphys2/src/validphys/pseudodata.py

Note: in validphys2/src/validphys/pseudodata.py function make_replica already takes into account the right multiplicative errors since they are stored as percentage in systematics_table, they are converted one the spot to fractions, and it is computed the product with the pseudodata which are made with level0_commondata_wc

FrancescoMerlotti commented 4 months ago

Added the chi2_provider.py functions to pseudodata.py. I guess that compute_chi2 and write_chi2 should be move in another file among the providers. I also added some examples for some of the implemented functions, I am working on the others right now

in coredata.CommonData I added the property cuts which returns a slice containing the cuts applied to the CommonData instance

in results I added the function data_index which is a refinement of group_index, and it is also present in the NNPDF code