Code for data: validphys
Introduction to validphys 2
validphys 2
is a Python code that implements the data model of NNPDF resources.It provides an executable, called
validphys
which is used to analyze NNPDF specific data, which takes runcards written in YAML as an input and can produce plots, tables or entire reports as an output.The code also provides a Python library (also called validphys) which is used to implement executables providing interfaces to more specific analyses such as the
vp-comparefits
, and to serve as basis to other NNPDF codes such asn3fit
.validphys 2
is implemented on top of the reportengine framework.reportengine
provides the logic to process the runcards by building task execution graphs based on individual actions (which are Python functions). The runcards can execute complex analysis and parameter scans with the appropriate use of namespaces. More information onreportengine
and its interface withvalidphys
can be found in the Design section.The ideas behind the design of the code are explained in the Design section.
Some things that validphys does
Download resources (
vp-get
) - see Downloading resourcesUpload resources (
vp-upload
,wiki-upload
and--upload
flag) - see Uploading results to the validphys repositoryPrepare fits for running with
n3fit
(vp_setupfit
) - see Validphys scriptsPostprocess a fit (
postfit
) - see Validphys scriptsRename a fit or PDF (
vp-fitrename
andvp-pdfrename
) - see Validphys scriptsSample a PDF (
vp-pdffromreplicas
) - see Validphys scriptsGenerate a report with information about possible inefficiencies in fitting methodology (
vp-deltachi2
) - see Validphys scriptsAllow analysis via a high level interface - see Using the validphys API
Analyse results - see Tutorials
Using validphys
- Getting started with validphys
- Downloading resources
- Uploading results to the
validphys
repository - The
nnprofile.yaml
file - Writing validphys runcards
- Specifying data cuts
- Comparing data and theory
- Generating reports
- Validphys scripts
- Using the validphys API
- Developing validphys
- Producing tables and figures
- Customizing
validphys
plots and other functionality - Examples