-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Validphys is unable to load pineappl tables when producing reports. To reproduce this error use the data_theory_comparison.yaml script with a new_commondata dataset e.g
-{dataset: HLLHC_FWDY_14TEV_CCm_DIF_RAP, frac: 0.75, cfac: ['QCD'], new_commondata: True}
as an input.
This gives:
File "/Users/ellacole/codes/simunet/simunet_git/SIMUnet/validphys2/src/validphys/core.py", line 516, in load
fktable = p.load()
File "/Users/ellacole/codes/simunet/simunet_git/SIMUnet/validphys2/src/validphys/core.py", line 617, in load
return FKTable(str(self.fkpath), [str(factor) for factor in self.cfactors])
File "/Users/ellacole/miniconda3/envs/simunet_mac/lib/python3.9/site-packages/NNPDF/nnpdf.py", line 3043, in __init__
_nnpdf.FKTable_swiginit(self, _nnpdf.new_FKTable(*args))
RuntimeError: [utils] error: Could not open (PosixPath('/Users/ellacole/miniconda3/envs/simunet_mac/share/NNPDF/data/theory_270/fastkernel/HLLHC_FWDY_14TEV_CCm_DIF_RAP.pineappl.lz4'),)I believe the method of loading the table should be changed but I am unsure how to do this.
I have tried changing p.load() in core.py to pineappl_reader(p), however this returns a FKTableData object when p.load() returns:
In [1]: p.load()
Out[1]: <NNPDF.nnpdf.FKTable; proxy of <Swig Object of type 'std::vector< NNPDF::FKTable * >::value_type' at 0x1700ce3c0>