Skip to content

Commit

Permalink
regenerate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achiefa committed Dec 9, 2024
1 parent 4fc1840 commit a95a326
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
Binary file modified validphys2/src/validphys/tests/baseline/test_plot_xq2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified validphys2/src/validphys/tests/baseline/test_plotfancy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions validphys2/src/validphys/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def tmp(tmpdir):
DATA = [
{'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy'},
{'dataset': 'ATLAS_TTBAR_7TEV_TOT_X-SEC', 'variant': 'legacy'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y', 'cfac': ['NRM'], 'variant': 'legacy_10'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y'},
# Explicitly put a CMS dataset between the two ATLAS
SINGLE_DATAPOINT,
]
Expand All @@ -47,7 +47,7 @@ def tmp(tmpdir):
'datasets': [
{'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy'},
{'dataset': 'ATLAS_TTBAR_7TEV_TOT_X-SEC', 'variant': 'legacy'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y', 'cfac': ['NRM'], 'variant': 'legacy_10'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y'},
],
}
]
Expand All @@ -60,7 +60,7 @@ def tmp(tmpdir):
DATA_THCOVMAT = [
{'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy'},
{'dataset': 'CHORUS_CC_NOTFIXED_PB_NU-SIGMARED', 'variant': 'legacy_dw'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y', 'cfac': ['NRM'], 'variant': 'legacy_10'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y'},
{'dataset': 'ATLAS_WJ_8TEV_WP-PT', 'variant': 'legacy'},
{'dataset': 'LHCB_Z0_8TEV_MUON_Y', 'cfac': ['NRM']},
]
Expand Down
11 changes: 3 additions & 8 deletions validphys2/src/validphys/tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_dataspecschi2():
dsinpts = [
{'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy'},
{'dataset': 'ATLAS_TTBAR_7TEV_TOT_X-SEC', 'variant': 'legacy'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y', 'cfac': ['NRM'], 'variant': 'legacy'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y'},
]
dataspecs = [
{'pdf': PDF, 'theoryid': THEORYID, 'speclabel': 'no t0'},
Expand Down Expand Up @@ -81,7 +81,7 @@ def test_plot_xq2():
dataset_inputs = [
{'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy'},
{'dataset': 'ATLAS_TTBAR_7TEV_TOT_X-SEC', 'variant': 'legacy'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y', 'cfac': ['NRM'], 'variant': 'legacy'},
{'dataset': 'CMS_Z0J_8TEV_PT-Y'},
]

return API.plot_xq2(
Expand All @@ -107,12 +107,7 @@ def test_plot_xq2_custom():
dataset_inputs = [
{'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy', 'custom_group': 'one'},
{'dataset': 'ATLAS_TTBAR_7TEV_TOT_X-SEC', 'variant': 'legacy', 'custom_group': 'one'},
{
'dataset': 'CMS_Z0J_8TEV_PT-Y',
'cfac': ['NRM'],
'variant': 'legacy',
'custom_group': 'two',
},
{'dataset': 'CMS_Z0J_8TEV_PT-Y', 'custom_group': 'two'},
]

return API.plot_xq2(
Expand Down

0 comments on commit a95a326

Please sign in to comment.