Closed FrancescoMerlotti closed 3 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
load_commondata
tovalidphys2/src/validphys/core.py
level0_commondata_wc
andmake_level1_data
tovalidphys2/src/validphys/pseudodata.py
to usechi2_provider.py
which needs the two functions added invalidphys2/src/validphys/pseudodata.py
Note: in
validphys2/src/validphys/pseudodata.py
functionmake_replica
already takes into account the right multiplicative errors since they are stored as percentage insystematics_table
, they are converted one the spot to fractions, and it is computed the product with the pseudodata which are made withlevel0_commondata_wc