Skip to content

Commit

Permalink
Add multiclosure comparefits
Browse files Browse the repository at this point in the history
  • Loading branch information
andreab1997 committed Feb 22, 2024
1 parent af4a08f commit 0b1e1e4
Show file tree
Hide file tree
Showing 12 changed files with 599 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ wiki-upload = "validphys.scripts.wiki_upload:main"
vp-get = "validphys.scripts.vp_get:main"
vp-comparefits = "validphys.scripts.vp_comparefits:main"
vp-fitrename = "validphys.scripts.vp_fitrename:main"
vp-multiclosure = "validphys.scripts.vp_multiclosure:main"
vp-checktheory = "validphys.scripts.vp_checktheory:main"
vp-rebuild-data = "validphys.scripts.vp_rebuild_data:main"
vp-pdfrename = "validphys.scripts.vp_pdfrename:main"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pathlib

template_path = pathlib.Path(__file__).with_name('multiclosure_analysis.yaml')
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
%NNPDF report comparing {@ current fit_id @} and {@ reference fit_id @}

Summary
-------

We are comparing:

- {@ current fit @} (`{@ current fit_id @}`): {@ current description @}
- {@ reference fit @} (`{@ reference fit_id @}`): {@ reference description @}


{@ summarise_fits @}


t0 losses
---------
{@ dataspecs::t0_info t0_chi2_info_table @}

Theory covariance summary
-------------------------
{@summarise_theory_covmat_fits@}

Dataset properties
------------------
{@current fit_datasets_properties_table@}

Distances
---------
{@with Scales@}
### {@Scaletitle@}
{@with Normalize::Basespecs::PDFscalespecs::Distspecs@}
#### {@Basistitle@}, {@Xscaletitle@}
{@plot_pdfdistances@}
{@plot_pdfvardistances@}
{@endwith@}
{@endwith@}

PDF arc-lengths
---------------
{@Basespecs plot_arc_lengths@}

Sum rules
---------
{@with pdfs@}
### {@pdf@}

#### Known sum rules

{@sum_rules_table@}

#### Unknown sum rules

{@unknown_sum_rules_table@}

{@endwith@}

PDF plots
---------
{@with Scales@}
[Plots at {@Scaletitle@}]({@pdf_report report@})
{@endwith@}

Luminosities
------------
{@with Energies@}
[Plots at {@Energytitle@}]({@lumi_report report@})
{@endwith@}

Effective exponents
-------------------
[Detailed information]({@exponents_report report@})

Training lengths
----------------
{@fits plot_training_length@}

Training-validation
-------------------
{@fits plot_training_validation@}

{@with DataGroups@}
$\chi^2$ by {@processed_metadata_group@}
----------------------------------------
{@plot_fits_groups_data_chi2@}
{@endwith@}


$\chi^2$ by dataset
-------------------
### Plot
{@plot_fits_datasets_chi2@}
### Table
{@ProcessGroup fits_chi2_table(show_total=true)@}


{@with DataGroups@}
$\phi$ by {@processed_metadata_group@}
--------------------------------------
{@plot_fits_groups_data_phi@}
{@endwith@}

Dataset plots
-------------
{@with matched_datasets_from_dataspecs@}
[Plots for {@dataset_name@}]({@dataset_report report@})
{@endwith@}

Positivity
----------
{@with matched_positivity_from_dataspecs@}
{@plot_dataspecs_positivity@}
{@endwith@}

Dataset differences and cuts
----------------------------
{@print_dataset_differences@}
{@print_different_cuts@}

Code versions
-------------
{@fits_version_table@}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
% Data-theory comparison for {@dataset_name@}
# Absolute
{@plot_fancy_dataspecs@}
# Normalized
{@Datanorm plot_fancy_dataspecs@}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%NNPDF report comparing {@ current fit @} and {@ reference fit @}

# Effective preprocessing information

## Plots
### alpha exponent
{@current::basisfromfit plot_alpha_eff@}
### beta exponent
{@current::basisfromfit plot_beta_eff@}

## Tables
{@with fits@}
### Next effective exponents for {@fit@}
{@effective_exponents_table@}
{@endwith@}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
%NNPDF report comparing {@ current fit @} and {@ reference fit @}

# Luminosity plots

{@with Normalize@}
{@with lumi_channels@}
{@plot_lumi1d@}
{@endwith@}
{@endwith@}
Loading

0 comments on commit 0b1e1e4

Please sign in to comment.