Skip to content

Commit 99de965

Browse files
committed
Update import test script
1 parent 9861f6c commit 99de965

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

maintainer/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
- `generate-coverage.sh`: generates code coverage locally
77
- `make-release.sh`: this script is supposed to be run by the maintainer to
88
create a new release. The only argument is the version number
9-
- `test-ploughshare-conversion.sh`: downloads APPLgrids and fastNLO tables from
10-
[Ploughshare] and tests PineAPPL's CLI `import` subcommand with them
9+
- `test-cli-import.sh`: downloads APPLgrids and fastNLO tables from
10+
[Ploughshare] and [Mitov's ttbar page] and tests PineAPPL's CLI `import`
11+
subcommand with them
1112

1213
[Ploughshare]: https://ploughshare.web.cern.ch/ploughshare/
14+
[Mitov's ttbar page]: https://www.precision.hep.phy.cam.ac.uk/results/ttbar-fastnlo/

maintainer/test-ploughshare-conversion.sh renamed to maintainer/test-cli-import.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
set -euo pipefail
44

55
grids=(
6+
## Ploughshare
7+
68
# Group: applfast
79
"https://ploughshare.web.cern.ch/ploughshare/db/applfast/applfast-atlas-dijets-appl-arxiv-1312.3524/applfast-atlas-dijets-appl-arxiv-1312.3524.tgz"
810
"https://ploughshare.web.cern.ch/ploughshare/db/applfast/applfast-atlas-dijets-appl-arxiv-1711.02692/applfast-atlas-dijets-appl-arxiv-1711.02692.tgz"
@@ -82,6 +84,15 @@ grids=(
8284
"https://ploughshare.web.cern.ch/ploughshare/db/xfitter/xfitter-na10-dimuon-286-inspire-212896/xfitter-na10-dimuon-286-inspire-212896.tgz"
8385
"https://ploughshare.web.cern.ch/ploughshare/db/xfitter/xfitter-wa70-pi+prompt-photon-inspire-250394/xfitter-wa70-pi+prompt-photon-inspire-250394.tgz"
8486
"https://ploughshare.web.cern.ch/ploughshare/db/xfitter/xfitter-wa70-pi-prompt-photon-inspire-250394/xfitter-wa70-pi-prompt-photon-inspire-250394.tgz"
87+
88+
## Mitov's ttbar tables
89+
90+
"http://www.precision.hep.phy.cam.ac.uk/wp-content/results/fastNLOtables/LHC8-ttbar-2dim-CMS.tar.gz"
91+
"http://www.precision.hep.phy.cam.ac.uk/wp-content/results/fastNLOtables/2d-ttbar-LHC-13TeV-3_masses.tar.gz"
92+
"http://www.precision.hep.phy.cam.ac.uk/wp-content/results/fastNLOtables/LHC13-ttbar-CMS_bin-fastNLO.tar.gz"
93+
"http://www.precision.hep.phy.cam.ac.uk/wp-content/results/fastNLOtables/LHC13-ttbar-CMS_bin-fastNLO-172_5.tar.gz"
94+
"http://www.precision.hep.phy.cam.ac.uk/wp-content/results/fastNLOtables/fastNLO-ttbar-NNLO-LHC8-173_3-bin1.tar.gz"
95+
"http://www.precision.hep.phy.cam.ac.uk/wp-content/results/fastNLOtables/fastNLO-ttbar-NNLO-LHC13-173_3-bin1.tar.gz"
8596
)
8697

8798
tmp=$(mktemp -d)
@@ -92,16 +103,18 @@ trap "cd && rm -rf ${tmp}" EXIT SIGKILL
92103
for grid in ${grids[@]}; do
93104
archive=${grid##*/}
94105
wget --no-verbose --no-clobber "${grid}" -O /tmp/"${archive}" || true
95-
tar xzf /tmp/"${archive}"
106+
mkdir subdir
107+
tar xzf /tmp/"${archive}" -C subdir
96108

97-
for grid in $(find . \( -name '*.appl' -o -name '*.tab.gz' -o -name '*.root' \)); do
109+
for grid in $(find subdir \( -name '*.appl' -o -name '*.tab' -o -name '*.tab.gz' -o -name '*.root' \)); do
98110
if [[ $(basename $grid) =~ ^\..* ]]; then
99111
continue
100112
fi
101113

102114
converted_grid="${grid}".pineappl.lz4
103-
pineappl --silence-lhapdf import --accuracy 1e-12 "${grid}" "${converted_grid}" NNPDF31_nnlo_as_0118_luxqed
115+
pineappl import --accuracy 1e-12 "${grid}" "${converted_grid}" NNPDF31_nnlo_as_0118_luxqed
104116
du -h "${grid}" "${converted_grid}"
105117
done
106-
rm -r ${archive%.tgz}
118+
119+
rm -r subdir
107120
done

0 commit comments

Comments
 (0)