LHAPDF uses yaml for .info files so we should do the same everywhere.
Some places where we are just reading them and looking at them like some old fortran programmer are:
|
with original_info.open() as orig_file, new_info.open('w') as new_file: |
|
with open(base/f'{pdf}.info', 'r') as inn, \ |
|
with open(info_path, 'r+') as f: |
Some checks that we need to perform:
Some caveats that I would add:
- The output of lists should styled as:
Flavors: [-5, -4, -3, -2, -1, 21, 1, 2, 3, 4, 5]
- The way to solve this issue is having a function
write_info in lhaindex or lhio that writes the yaml file with the right options.
Continuation of the discussion of #1551
LHAPDF uses
yamlfor.infofiles so we should do the same everywhere.Some places where we are just reading them and looking at them like some old fortran programmer are:
nnpdf/validphys2/src/validphys/lhio.py
Line 248 in c4084de
nnpdf/validphys2/src/validphys/lhio.py
Line 305 in c4084de
nnpdf/validphys2/src/validphys/scripts/postfit.py
Line 59 in c4084de
Some checks that we need to perform:
infofiles for all PDFs in the LHAPDF server be read asyamlfiles?yamlfiles, can they be read back byLHAPDF?Some caveats that I would add:
Flavors: [-5, -4, -3, -2, -1, 21, 1, 2, 3, 4, 5]write_infoinlhaindexorlhiothat writes the yaml file with the right options.Continuation of the discussion of #1551