NNPDF / nnpdf

An open-source machine learning framework for global analyses of parton distributions.
https://docs.nnpdf.science/
GNU General Public License v3.0
30 stars 6 forks source link

Create a nnpdf data cli and package #2037

Open scarlehoff opened 8 months ago

scarlehoff commented 8 months ago

This is just a collection of scripts / ideas that I think they might be useful. I've been writing some scripts already while preparing the talk for DIS so might as well make it into a cli for the data package.

scarlehoff commented 1 month ago

In order to separate the data package from the rest of the code (while keeping the reading features), the only necessary step is to move this function (and its dependencies) to the data: https://github.com/NNPDF/nnpdf/blob/87daeb1b25cc913fe45a6d7d8be779f80c7ebffc/validphys2/src/validphys/commondataparser.py#L811

The only piece that keeps a dependence on validphys are the old plotting options (plus perhaps a few constants that are defined in other files). Once no more old commondata files need to be read, those will be easily removed.

In the meantime, if someone wanta to move things around anyway they can do so, but some kind of "fake plotting options"* will be needed in the middle.

*plotting options are, obviously, more than plotting options and have an effect also in e.g. the kinematics

felixhekhorn commented 1 week ago

see #2225