You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pineappl_cli/tests/write.rs
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ Options:
24
24
--mul-bin-norm <NORM> Multiply all bin normalizations with the given factor
25
25
--optimize[=<ENABLE>] Optimize internal data structure to minimize memory and disk usage [possible values: true, false]
26
26
--optimize-fk-table <OPTIMI> Optimize internal data structure of an FkTable to minimize memory and disk usage [possible values: Nf6Ind, Nf6Sym, Nf5Ind, Nf5Sym, Nf4Ind, Nf4Sym, Nf3Ind, Nf3Sym]
27
+
--repair[=<ENABLE>] Repair bugs saved in the grid [possible values: true, false]
27
28
--rewrite-channel <IDX> <CHAN> Rewrite the definition of the channel with index IDX
28
29
--rewrite-order <IDX> <ORDER> Rewrite the definition of the order with index IDX
29
30
--rotate-pid-basis <BASIS> Rotate the PID basis for this grid [possible values: PDG, EVOL]
@@ -876,6 +877,23 @@ fn multiple_arguments() {
876
877
.stdout(MULTIPLE_ARGUMENTS_STR);
877
878
}
878
879
880
+
#[test]
881
+
fnrepair(){
882
+
let output = NamedTempFile::new("repaired-grid.pineappl.lz4").unwrap();
883
+
884
+
Command::cargo_bin("pineappl")
885
+
.unwrap()
886
+
.args([
887
+
"write",
888
+
"--repair",
889
+
"../test-data/LHCB_WP_7TEV_opt.pineappl.lz4",
890
+
output.path().to_str().unwrap(),
891
+
])
892
+
.assert()
893
+
.success()
894
+
.stdout("");
895
+
}
896
+
879
897
#[test]
880
898
fnrewrite_channels(){
881
899
let output = NamedTempFile::new("ckm_channels.pineappl.lz4").unwrap();
0 commit comments