Skip to content

Commit f928b80

Browse files
committed
Make test data smaller
1 parent 08cc5e0 commit f928b80

3 files changed

Lines changed: 10 additions & 74 deletions

File tree

.github/actions/cache-test-data/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
uses: actions/cache@v4
1111
with:
1212
path: test-data
13-
key: test-data-v31
13+
key: test-data-v32
1414
- name: Download test data if cache miss
1515
if: steps.cache.outputs.cache-hit != 'true'
1616
run: |

maintainer/download-test-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ files=(
4444
'https://data.nnpdf.science/pineappl/test-data/LHCB_WP_7TEV_opt.pineappl.lz4'
4545
'https://data.nnpdf.science/pineappl/test-data/LHCB_WP_7TEV_v2.tar'
4646
'https://data.nnpdf.science/pineappl/test-data/LHCB_WP_7TEV_v2_xif_2.tar'
47-
'https://data.nnpdf.science/pineappl/test-data/nnlo.ak5_ptj.pineappl.lz4'
47+
'https://data.nnpdf.science/pineappl/test-data/nnlo.ak5_ptj-bin63.pineappl.lz4'
4848
'https://data.nnpdf.science/pineappl/test-data/NJetEvents_0-0-2.tab.gz'
4949
'https://data.nnpdf.science/pineappl/test-data/NNPDF_POS_F2D_40.pineappl.lz4'
5050
'https://data.nnpdf.science/pineappl/test-data/NUTEV_CC_NU_FE_SIGMARED.pineappl.lz4'

pineappl_cli/tests/export.rs

Lines changed: 8 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -133,77 +133,13 @@ fn export_applgrid() {
133133
}
134134

135135
#[cfg(feature = "applgrid")]
136-
const EXPORT_NNLO_AK5_PTJ_STR: &str = "b APPLgrid PineAPPL rel. diff
137-
--+------------+------------+--------------
138-
0 7.1475199e8 7.1475253e8 7.6053554e-7
139-
1 2.5536645e8 2.5536667e8 8.6645764e-7
140-
2 8.0742409e7 8.0742409e7 1.2478907e-13
141-
3 4.0260433e7 4.0260445e7 2.8169024e-7
142-
4 1.9839883e7 1.9839887e7 2.1808465e-7
143-
5 1.0119027e7 1.0119028e7 1.3544486e-7
144-
6 5.5702376e6 5.5702379e6 5.8673922e-8
145-
7 3.1322190e6 3.1322207e6 5.3759875e-7
146-
8 1.9447742e6 1.9447743e6 4.2597541e-8
147-
9 1.1701564e6 1.1701565e6 7.4993014e-8
148-
10 7.2929160e5 7.2929198e5 5.1385162e-7
149-
11 4.7885350e5 4.7885359e5 1.8458927e-7
150-
12 3.0583779e5 3.0583781e5 7.0650601e-8
151-
13 2.0537268e5 2.0537272e5 1.9724071e-7
152-
14 1.3581347e5 1.3581349e5 1.4894264e-7
153-
15 9.3481731e4 9.3481745e4 1.5065258e-7
154-
16 6.1789306e4 6.1789317e4 1.7921741e-7
155-
17 4.2234799e4 4.2234800e4 3.7378332e-9
156-
18 2.9446997e4 2.9446998e4 2.7827810e-8
157-
19 2.0711158e4 2.0711158e4 3.6083760e-9
158-
20 1.4399288e4 1.4399288e4 -1.6959262e-9
159-
21 1.0204248e4 1.0204248e4 2.1560531e-13
160-
22 7.0541335e3 7.0541335e3 2.0916602e-13
161-
23 5.1274795e3 5.1274798e3 5.3440854e-8
162-
24 3.5785021e3 3.5785021e3 -7.3925543e-10
163-
25 2.5497806e3 2.5497806e3 2.0650148e-13
164-
26 1.8525134e3 1.8525134e3 -7.1513917e-10
165-
27 1.3124163e3 1.3124164e3 6.5466644e-8
166-
28 9.3353298e2 9.3353296e2 -2.4834690e-8
167-
29 6.8182565e2 6.8182566e2 1.9250868e-8
168-
30 4.8152109e2 4.8152109e2 2.0583535e-13
169-
31 3.4599110e2 3.4599110e2 2.0228264e-13
170-
32 2.4853801e2 2.4853801e2 1.9961810e-13
171-
33 1.8153858e2 1.8153858e2 1.9295676e-13
172-
34 1.2893001e2 1.2893001e2 1.8895996e-13
173-
35 9.2863897e1 9.2863897e1 -1.2712831e-11
174-
36 6.8219858e1 6.8219863e1 6.7323209e-8
175-
37 4.8499048e1 4.8499049e1 2.6932878e-9
176-
38 3.5260803e1 3.5260804e1 3.1629175e-8
177-
39 2.4875207e1 2.4875207e1 1.5327475e-9
178-
40 1.8248343e1 1.8248344e1 9.2649788e-8
179-
41 1.2848351e1 1.2848351e1 -3.4248875e-8
180-
42 9.3637433e0 9.3637433e0 1.0366541e-9
181-
43 6.5025357e0 6.5025357e0 2.9029490e-9
182-
44 4.7299678e0 4.7299683e0 1.1183387e-7
183-
45 3.3169392e0 3.3169393e0 1.6485298e-8
184-
46 2.3366424e0 2.3366426e0 7.2538949e-8
185-
47 1.6375345e0 1.6375347e0 1.3000311e-7
186-
48 1.1395783e0 1.1395784e0 8.0374843e-8
187-
49 7.7573740e-1 7.7573745e-1 6.3753925e-8
188-
50 5.3385646e-1 5.3385655e-1 1.7113346e-7
189-
51 3.5431304e-1 3.5431287e-1 -4.7859888e-7
190-
52 2.3984658e-1 2.3984660e-1 7.3858889e-8
191-
53 1.5742653e-1 1.5742660e-1 4.7452613e-7
192-
54 1.0381680e-1 1.0381681e-1 1.3036277e-7
193-
55 6.7367194e-2 6.7367194e-2 4.7924602e-9
194-
56 4.1754029e-2 4.1754049e-2 4.8244591e-7
195-
57 2.5167475e-2 2.5167484e-2 3.3871366e-7
196-
58 1.5430966e-2 1.5430971e-2 3.0639168e-7
197-
59 8.9218263e-3 8.9218286e-3 2.6013356e-7
198-
60 5.0265483e-3 5.0265486e-3 6.8485890e-8
199-
61 2.9066861e-3 2.9066853e-3 -2.9518261e-7
200-
62 1.4089133e-3 1.4089139e-3 4.5456056e-7
201-
63 6.7833493e-4 6.7833993e-4 7.3775731e-6
202-
64 1.0497365e-4 1.0497395e-4 2.8590177e-6
136+
const EXPORT_NNLO_AK5_PTJ_STR: &str = "b APPLgrid PineAPPL rel. diff
137+
-+------------+------------+------------
138+
0 6.7833493e-4 6.7833993e-4 7.3775731e-6
203139
";
204140

205141
#[cfg(feature = "applgrid")]
206-
const EXPORT_NNLO_AK5_PTJ_NO_DISCARD_FAILS_STR: &str = "Error: factorization scale muf2 = 33634.5450347851 not found in APPLgrid; try exporting with `--discard-non-matching-values`
142+
const EXPORT_NNLO_AK5_PTJ_NO_DISCARD_FAILS_STR: &str = "Error: factorization scale muf2 = 46548084.443279915 not found in APPLgrid; try exporting with `--discard-non-matching-values`
207143
";
208144

209145
#[test]
@@ -217,7 +153,7 @@ fn export_nnlo_ak5_ptj_discard_non_matching_values() {
217153
"export",
218154
"--discard-non-matching-values",
219155
"--accuracy=1e-5",
220-
"../test-data/nnlo.ak5_ptj.pineappl.lz4",
156+
"../test-data/nnlo.ak5_ptj-bin63.pineappl.lz4",
221157
output.path().to_str().unwrap(),
222158
"NNPDF31_nlo_as_0118_luxqed",
223159
])
@@ -237,7 +173,7 @@ fn export_nnlo_ak5_ptj_discard_non_matching_scales_alias() {
237173
"export",
238174
"--discard-non-matching-scales",
239175
"--accuracy=1e-5",
240-
"../test-data/nnlo.ak5_ptj.pineappl.lz4",
176+
"../test-data/nnlo.ak5_ptj-bin63.pineappl.lz4",
241177
output.path().to_str().unwrap(),
242178
"NNPDF31_nlo_as_0118_luxqed",
243179
])
@@ -257,7 +193,7 @@ fn export_nnlo_ak5_ptj_discard_non_matching_momentum_alias() {
257193
"export",
258194
"--discard-non-matching-momentum",
259195
"--accuracy=1e-5",
260-
"../test-data/nnlo.ak5_ptj.pineappl.lz4",
196+
"../test-data/nnlo.ak5_ptj-bin63.pineappl.lz4",
261197
output.path().to_str().unwrap(),
262198
"NNPDF31_nlo_as_0118_luxqed",
263199
])
@@ -275,7 +211,7 @@ fn export_nnlo_ak5_ptj_no_discard_fails() {
275211
.unwrap()
276212
.args([
277213
"export",
278-
"../test-data/nnlo.ak5_ptj.pineappl.lz4",
214+
"../test-data/nnlo.ak5_ptj-bin63.pineappl.lz4",
279215
output.path().to_str().unwrap(),
280216
"NNPDF31_nlo_as_0118_luxqed",
281217
])

0 commit comments

Comments
 (0)