hep-combine 1.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. hep_combine-1.2.2/.gitignore +9 -0
  2. hep_combine-1.2.2/.gitlab-ci.yml +29 -0
  3. hep_combine-1.2.2/Cargo.lock +1222 -0
  4. hep_combine-1.2.2/Cargo.toml +51 -0
  5. hep_combine-1.2.2/LICENSE +21 -0
  6. hep_combine-1.2.2/PKG-INFO +156 -0
  7. hep_combine-1.2.2/README.md +173 -0
  8. hep_combine-1.2.2/assets/fonts/DejaVuSans-Bold.ttf +0 -0
  9. hep_combine-1.2.2/assets/fonts/DejaVuSans-Oblique.ttf +0 -0
  10. hep_combine-1.2.2/assets/fonts/DejaVuSans.ttf +0 -0
  11. hep_combine-1.2.2/assets/fonts/LICENSE_DEJAVU +99 -0
  12. hep_combine-1.2.2/bindings/python/Cargo.lock +763 -0
  13. hep_combine-1.2.2/bindings/python/Cargo.toml +26 -0
  14. hep_combine-1.2.2/bindings/python/LICENSE +21 -0
  15. hep_combine-1.2.2/bindings/python/README.md +129 -0
  16. hep_combine-1.2.2/bindings/python/src/lib.rs +1116 -0
  17. hep_combine-1.2.2/bindings/python/tests/test_hep_combine.py +433 -0
  18. hep_combine-1.2.2/docs/CLI_REFERENCE.md +238 -0
  19. hep_combine-1.2.2/docs/EXAMPLES.md +464 -0
  20. hep_combine-1.2.2/docs/MIGRATION_FROM_COMBINE.md +205 -0
  21. hep_combine-1.2.2/docs/README.md +34 -0
  22. hep_combine-1.2.2/docs/STATISTICAL_METHODS.md +137 -0
  23. hep_combine-1.2.2/docs/VALIDATION_AND_BENCHMARKS.md +168 -0
  24. hep_combine-1.2.2/pyproject.toml +39 -0
  25. hep_combine-1.2.2/python/hep_combine/__init__.py +43 -0
  26. hep_combine-1.2.2/python/hep_combine/__init__.pyi +199 -0
  27. hep_combine-1.2.2/python/hep_combine/py.typed +0 -0
  28. hep_combine-1.2.2/scripts/build_static_musl.sh +305 -0
  29. hep_combine-1.2.2/scripts/refresh_combine_oracles.sh +546 -0
  30. hep_combine-1.2.2/src/api.rs +2157 -0
  31. hep_combine-1.2.2/src/bayesian.rs +3228 -0
  32. hep_combine-1.2.2/src/cards/combine_cards.rs +1528 -0
  33. hep_combine-1.2.2/src/cards/mod.rs +8 -0
  34. hep_combine-1.2.2/src/cards/nuisance_edit.rs +2229 -0
  35. hep_combine-1.2.2/src/cards/tools.rs +1282 -0
  36. hep_combine-1.2.2/src/ccc.rs +828 -0
  37. hep_combine-1.2.2/src/combine_cli/diagnostics.rs +1127 -0
  38. hep_combine-1.2.2/src/combine_cli/limits.rs +956 -0
  39. hep_combine-1.2.2/src/combine_cli/mod.rs +787 -0
  40. hep_combine-1.2.2/src/combine_cli/multidim.rs +1068 -0
  41. hep_combine-1.2.2/src/combine_cli/options.rs +2564 -0
  42. hep_combine-1.2.2/src/combine_cli/root_out.rs +532 -0
  43. hep_combine-1.2.2/src/combine_cli/toys_gof.rs +1650 -0
  44. hep_combine-1.2.2/src/combine_cli/wave4.rs +1039 -0
  45. hep_combine-1.2.2/src/datacard.rs +1233 -0
  46. hep_combine-1.2.2/src/diagnostics.rs +1903 -0
  47. hep_combine-1.2.2/src/discrete.rs +3909 -0
  48. hep_combine-1.2.2/src/error.rs +332 -0
  49. hep_combine-1.2.2/src/exotic_pdfs.rs +1362 -0
  50. hep_combine-1.2.2/src/fast_scan.rs +965 -0
  51. hep_combine-1.2.2/src/fit.rs +1379 -0
  52. hep_combine-1.2.2/src/formula.rs +867 -0
  53. hep_combine-1.2.2/src/global_impacts.rs +1924 -0
  54. hep_combine-1.2.2/src/gof_extra.rs +647 -0
  55. hep_combine-1.2.2/src/hs3.rs +4852 -0
  56. hep_combine-1.2.2/src/html_viewer.rs +2393 -0
  57. hep_combine-1.2.2/src/impacts.rs +330 -0
  58. hep_combine-1.2.2/src/krylov.rs +3006 -0
  59. hep_combine-1.2.2/src/lbfgs.rs +403 -0
  60. hep_combine-1.2.2/src/lib.rs +102 -0
  61. hep_combine-1.2.2/src/likelihood.rs +2439 -0
  62. hep_combine-1.2.2/src/lint.rs +154 -0
  63. hep_combine-1.2.2/src/main.rs +5795 -0
  64. hep_combine-1.2.2/src/model.rs +2651 -0
  65. hep_combine-1.2.2/src/morph.rs +1560 -0
  66. hep_combine-1.2.2/src/multidim.rs +3409 -0
  67. hep_combine-1.2.2/src/names.rs +30 -0
  68. hep_combine-1.2.2/src/parametric.rs +5005 -0
  69. hep_combine-1.2.2/src/pdfs/analytic.rs +4665 -0
  70. hep_combine-1.2.2/src/pdfs/combinators.rs +3826 -0
  71. hep_combine-1.2.2/src/pdfs/fft_conv.rs +1514 -0
  72. hep_combine-1.2.2/src/pdfs/mod.rs +2056 -0
  73. hep_combine-1.2.2/src/pdfs/special.rs +1028 -0
  74. hep_combine-1.2.2/src/physics_model/builtin.rs +3783 -0
  75. hep_combine-1.2.2/src/physics_model/declarative.rs +581 -0
  76. hep_combine-1.2.2/src/physics_model/mod.rs +548 -0
  77. hep_combine-1.2.2/src/plots/axes.rs +415 -0
  78. hep_combine-1.2.2/src/plots/canvas.rs +976 -0
  79. hep_combine-1.2.2/src/plots/contour.rs +739 -0
  80. hep_combine-1.2.2/src/plots/discrete.rs +1090 -0
  81. hep_combine-1.2.2/src/plots/gof.rs +613 -0
  82. hep_combine-1.2.2/src/plots/grid.rs +189 -0
  83. hep_combine-1.2.2/src/plots/mod.rs +1353 -0
  84. hep_combine-1.2.2/src/plots/parametric.rs +771 -0
  85. hep_combine-1.2.2/src/plots/scan.rs +1144 -0
  86. hep_combine-1.2.2/src/plots/toys.rs +736 -0
  87. hep_combine-1.2.2/src/plots/viridis.rs +268 -0
  88. hep_combine-1.2.2/src/postfit_shapes.rs +1383 -0
  89. hep_combine-1.2.2/src/provenance.rs +350 -0
  90. hep_combine-1.2.2/src/pulls.rs +1151 -0
  91. hep_combine-1.2.2/src/pyfmt.rs +70 -0
  92. hep_combine-1.2.2/src/quirks.rs +1717 -0
  93. hep_combine-1.2.2/src/robust_hesse.rs +301 -0
  94. hep_combine-1.2.2/src/root_math.rs +493 -0
  95. hep_combine-1.2.2/src/roots.rs +156 -0
  96. hep_combine-1.2.2/src/selector.rs +771 -0
  97. hep_combine-1.2.2/src/shapes.rs +1018 -0
  98. hep_combine-1.2.2/src/simplified.rs +2545 -0
  99. hep_combine-1.2.2/src/snapshot.rs +859 -0
  100. hep_combine-1.2.2/src/stats.rs +436 -0
  101. hep_combine-1.2.2/src/toys/feldman_cousins.rs +700 -0
  102. hep_combine-1.2.2/src/toys/hybrid_new.rs +3305 -0
  103. hep_combine-1.2.2/src/toys/lee.rs +283 -0
  104. hep_combine-1.2.2/src/toys/mod.rs +1309 -0
  105. hep_combine-1.2.2/src/toys/test_stats.rs +527 -0
  106. hep_combine-1.2.2/src/transfer.rs +1150 -0
  107. hep_combine-1.2.2/src/unfolding.rs +1001 -0
  108. hep_combine-1.2.2/src/validate/hists.rs +576 -0
  109. hep_combine-1.2.2/src/validate/mod.rs +398 -0
  110. hep_combine-1.2.2/src/validate/model_checks.rs +471 -0
  111. hep_combine-1.2.2/src/validate/official.rs +1494 -0
  112. hep_combine-1.2.2/src/validate/output.rs +450 -0
  113. hep_combine-1.2.2/src/validate/structure.rs +1086 -0
  114. hep_combine-1.2.2/src/validate/text.rs +59 -0
  115. hep_combine-1.2.2/src/workspace/compile.rs +7137 -0
  116. hep_combine-1.2.2/src/workspace/declarative.rs +7729 -0
  117. hep_combine-1.2.2/src/workspace/graph.rs +3791 -0
  118. hep_combine-1.2.2/src/workspace/mod.rs +178 -0
  119. hep_combine-1.2.2/src/workspace/streamer.rs +2536 -0
  120. hep_combine-1.2.2/src/zscore.rs +745 -0
  121. hep_combine-1.2.2/tests/combine_cli.rs +2370 -0
  122. hep_combine-1.2.2/tests/combine_ranges.rs +297 -0
  123. hep_combine-1.2.2/tests/combine_rules.rs +685 -0
  124. hep_combine-1.2.2/tests/core_regressions.rs +130 -0
  125. hep_combine-1.2.2/tests/hardening_cli_plots.rs +1238 -0
  126. hep_combine-1.2.2/tests/hardening_core.rs +1270 -0
  127. hep_combine-1.2.2/tests/hardening_discrete.rs +1845 -0
  128. hep_combine-1.2.2/tests/hardening_inputs.rs +1265 -0
  129. hep_combine-1.2.2/tests/hardening_parametric.rs +1393 -0
  130. hep_combine-1.2.2/tests/hep_combine.rs +337 -0
  131. hep_combine-1.2.2/tests/r2_asimov_bnb_pdfs.rs +1337 -0
  132. hep_combine-1.2.2/tests/r2_engine_krylov.rs +842 -0
  133. hep_combine-1.2.2/tests/r2_frontend_bayes.rs +1533 -0
  134. hep_combine-1.2.2/tests/r2_interop_main.rs +1248 -0
  135. hep_combine-1.2.2/tests/stats.rs +814 -0
  136. hep_combine-1.2.2/tests/v110_cms_workspaces.rs +2473 -0
  137. hep_combine-1.2.2/tests/v110_likelihood.rs +1061 -0
  138. hep_combine-1.2.2/tests/v110_oracle_tiers.rs +1349 -0
  139. hep_combine-1.2.2/tests/v110_perf_adjoint.rs +934 -0
  140. hep_combine-1.2.2/tests/v110_quirks_cli.rs +1093 -0
  141. hep_combine-1.2.2/tests/v120_api_facade.rs +871 -0
  142. hep_combine-1.2.2/tests/v120_cli_split.rs +889 -0
  143. hep_combine-1.2.2/tests/v120_cms_pdfs_tail.rs +2396 -0
  144. hep_combine-1.2.2/tests/v120_gamma_bb_scans.rs +932 -0
  145. hep_combine-1.2.2/tests/v120_hybrid_crn.rs +907 -0
  146. hep_combine-1.2.2/tests/validate.rs +1137 -0
  147. hep_combine-1.2.2/tests/vectors/combine_oracle_manifest.json +729 -0
  148. hep_combine-1.2.2/tests/vectors/inputs/counting.txt +16 -0
  149. hep_combine-1.2.2/tests/vectors/inputs/lowstat.txt +17 -0
  150. hep_combine-1.2.2/tests/vectors/inputs/rate_formula.txt +17 -0
  151. hep_combine-1.2.2/tests/vectors/inputs/shapeN.txt +18 -0
  152. hep_combine-1.2.2/tests/vectors/inputs/shape_auto.txt +19 -0
  153. hep_combine-1.2.2/tests/vectors/inputs/shape_auto_high.txt +19 -0
  154. hep_combine-1.2.2/tests/vectors/inputs/shape_plain.txt +18 -0
  155. hep_combine-1.2.2/tests/vectors/inputs/shapes.root +0 -0
  156. hep_combine-1.2.2/tests/vectors/make_shapes_fixture.C +29 -0
  157. hep_combine-1.2.2/tests/vectors/mcstats.txt +19 -0
  158. hep_combine-1.2.2/tests/vectors/shapes.root +0 -0
  159. hep_combine-1.2.2/tests/vectors/validate/clean.txt +18 -0
  160. hep_combine-1.2.2/tests/vectors/validate/hists.root +0 -0
  161. hep_combine-1.2.2/tests/vectors/validate/kinds.txt +19 -0
  162. hep_combine-1.2.2/tests/vectors/validate/make_pdf_workspace_fixture.C +115 -0
  163. hep_combine-1.2.2/tests/vectors/validate/make_validate_fixture.C +139 -0
  164. hep_combine-1.2.2/tests/vectors/validate/make_workspace_fixture.C +39 -0
  165. hep_combine-1.2.2/tests/vectors/validate/official.json +151 -0
  166. hep_combine-1.2.2/tests/vectors/validate/official.txt +25 -0
  167. hep_combine-1.2.2/tests/vectors/validate/ws.root +0 -0
  168. hep_combine-1.2.2/tests/vectors/validate/ws_pdf.root +0 -0
  169. hep_combine-1.2.2/tests/vectors/validate/ws_unread.root +0 -0
  170. hep_combine-1.2.2/tests/vectors/wave3/hgg_multipdf_ws.root +0 -0
  171. hep_combine-1.2.2/tests/vectors/wave3/simul_2d_ws.root +0 -0
  172. hep_combine-1.2.2/tests/vectors/wave3/t2w_parametric_ws.root +0 -0
  173. hep_combine-1.2.2/tests/wave1_cards.rs +1007 -0
  174. hep_combine-1.2.2/tests/wave1_cli.rs +1187 -0
  175. hep_combine-1.2.2/tests/wave1_core.rs +1139 -0
  176. hep_combine-1.2.2/tests/wave1_debug_plots.rs +879 -0
  177. hep_combine-1.2.2/tests/wave1_oracle.rs +1584 -0
  178. hep_combine-1.2.2/tests/wave1_shapes_postfit.rs +1339 -0
  179. hep_combine-1.2.2/tests/wave2_cli.rs +1967 -0
  180. hep_combine-1.2.2/tests/wave2_multidim.rs +1288 -0
  181. hep_combine-1.2.2/tests/wave2_oracle.rs +2083 -0
  182. hep_combine-1.2.2/tests/wave2_physics_unfold.rs +1337 -0
  183. hep_combine-1.2.2/tests/wave2_stats.rs +1219 -0
  184. hep_combine-1.2.2/tests/wave2_toys.rs +999 -0
  185. hep_combine-1.2.2/tests/wave3_cli.rs +1169 -0
  186. hep_combine-1.2.2/tests/wave3_compile.rs +1452 -0
  187. hep_combine-1.2.2/tests/wave3_declarative.rs +1545 -0
  188. hep_combine-1.2.2/tests/wave3_discrete.rs +1065 -0
  189. hep_combine-1.2.2/tests/wave3_oracle.rs +2420 -0
  190. hep_combine-1.2.2/tests/wave3_parametric.rs +1213 -0
  191. hep_combine-1.2.2/tests/wave3_pdfs.rs +1945 -0
  192. hep_combine-1.2.2/tests/wave3_rooworkspace.rs +926 -0
  193. hep_combine-1.2.2/tests/wave4_cli.rs +1565 -0
  194. hep_combine-1.2.2/tests/wave4_hs3_sl_morph.rs +1258 -0
  195. hep_combine-1.2.2/tests/wave4_html_tools.rs +760 -0
  196. hep_combine-1.2.2/tests/wave4_krylov_impacts.rs +1384 -0
  197. hep_combine-1.2.2/tests/wave4_oracle.rs +2707 -0
  198. hep_combine-1.2.2/tests/wave4_tier4.rs +1147 -0
@@ -0,0 +1,9 @@
1
+ target/
2
+ __pycache__/
3
+ *.egg-info/
4
+ .pytest_cache/
5
+
6
+ .DS_Store
7
+
8
+ # Local GitLab project avatar source & renders
9
+ .avatar/
@@ -0,0 +1,29 @@
1
+ # Build, lint, and test on every push, with the Rust image from CERN's mirror of Docker Hub.
2
+ test:
3
+ image: registry.cern.ch/docker.io/library/rust:1.91
4
+ script:
5
+ # Static analysis gate: zero warnings permitted in library and binary targets.
6
+ - cargo clippy --lib --bins --locked -- -D warnings
7
+ # Full unit, integration, and doc test suites.
8
+ - cargo test --all-targets --locked
9
+ - cargo test --doc --locked
10
+ # Explicit v1.0.1 hardening & v1.1.0 / v1.2.0 unification and oracle property-test tiers.
11
+ - cargo test --locked --test hardening_core --test hardening_discrete --test hardening_parametric --test hardening_inputs --test hardening_cli_plots
12
+ - cargo test --locked --test v110_likelihood --test v110_quirks_cli --test v110_cms_workspaces --test v110_perf_adjoint --test v110_oracle_tiers
13
+ - cargo test --locked --test v120_cli_split --test v120_api_facade --test v120_gamma_bb_scans --test v120_hybrid_crn --test v120_cms_pdfs_tail
14
+ - cargo test --locked --test r2_interop_main --test r2_engine_krylov --test r2_asimov_bnb_pdfs --test r2_frontend_bayes
15
+ # The plots are an optional feature: the library, the command and the tests build and pass without it.
16
+ - cargo check --no-default-features --all-targets --locked
17
+ - cargo test --no-default-features --lib --bins --locked
18
+
19
+ # Build the Python abi3 wheel with maturin and run its unittest suite.
20
+ python:
21
+ image: registry.cern.ch/docker.io/library/rust:1.91
22
+ script:
23
+ - apt-get update -qq && apt-get install -y -qq python3-pip > /dev/null
24
+ - export PIP_BREAK_SYSTEM_PACKAGES=1 PIP_ROOT_USER_ACTION=ignore
25
+ - pip install --quiet maturin==1.15.0
26
+ - cargo clippy --manifest-path bindings/python/Cargo.toml --features pyo3/extension-module --locked -- -D warnings
27
+ - maturin build --release --locked --out bindings/python/dist -m bindings/python/Cargo.toml
28
+ - pip install --quiet bindings/python/dist/*.whl
29
+ - python3 -m unittest discover -v bindings/python/tests