Skip to content

Use yaml for .info files. #1552

@scarlehoff

Description

@scarlehoff

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:

  • Can all info files for all PDFs in the LHAPDF server be read as yaml files?
  • If they are dumped by vp as yaml files, can they be read back by LHAPDF?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions