Open cschwan opened 1 year ago
A configuration file would be needed for these features.
Already present: https://github.com/AleCandido/partons/blob/main/partons/src/configs.rs
It should look like this: https://github.com/AleCandido/partons/blob/dc585d3a5d58ffdbfd0ace911b6b514d59adcd3a/partons.toml#L1-L5
- download PDFs from multiple places or 'registries', for instance http://lhapdfsets.web.cern.ch/lhapdfsets/current, but also other http servers
Half-done:
serde-yaml
refuses to help...Moreover, I want to drop the original file format of LHAPDF, and just keep it for compatibility:
serde
, to avoid the need of a dedicated (and slower) parserThe LHAPDF one will be kept anyhow, for compatibility.
Another bit it is worth to mention here is what we discussed about "configuring a server".
Since the server configuration, for a given server, should be the same for all the clients (at least the basic part, further customization might be allowed), it should be hosted at a single URL on the server itself, such that:
partons remote add [<optional-name>] https://pdfsets.nnpdf.science/configuration.json
is directly registering the server in the local configs file.
I think it would be useful to have the following features:
NNPDF40 = NNPDF40_nnlo_as_01180
A configuration file would be needed for these features.