Repository navigation
Releases
v0.5.0 — relicensed GPL-3.0-or-later
Relicensed from BSD-3-Clause to GPL-3.0-or-later, with the agreement of both copyright holders.
Releases up to and including 0.4.0 remain BSD-3-Clause and are unaffected — anyone who obtained the code under those terms keeps them. This change governs what follows.
LICENSE is now the verbatim GPLv3 text. Because that text carries no copyright line of its own, the notice the BSD file held is restored at the top of the package source, as the GPL's own "How to Apply These Terms" recommends. The deprecated BSD classifier is replaced by a PEP 639 license expression.
No code changes; 51 tests pass unchanged.
v0.4.0
Declares the NumPy floor the code has required since 0.3.0.
scanning.spectrum_from_rate uses np.trapezoid (NumPy 2.0+) while the dependency was an unbounded numpy, so installing on NumPy 1.x resolved cleanly and then failed at runtime in the module the UHDM analysis uses. Now numpy>=2.0 and scipy>=1.11.
No library behaviour changes. 0.4.0 rather than 1.0: the API has been stable since 0.3.0 and this release is additive, but with no CI the advertised 3.10-3.14 support is untested and a 1.0 stability promise should not rest on it.
v0.3.1
No code changes: identical library behaviour to v0.3.0.
This release exists to re-trigger the Zenodo archive. The v0.3.0 release published normally, but its Zenodo deposition failed (Record '21654398' has no file 'tunnell/optimum_interval-v0.3.0.zip') and that record no longer exists, so v0.3.0 never received a version DOI.
Cite the concept DOI, which always resolves to the latest archived version: 10.5281/zenodo.21114720
v0.3.0
v0.2.0
Cleanup and applied-tutorial release.
- Deterministic
upper_limit(fixed cached mu grid, interpolated crossing). - Correct
c0at large mu; input validation incumulant_points. - New:
spectrum_cdf_from_pdf/spectrum_cdf_from_samples,poisson_upper_limit,max_gap_upper_limit,ComparisonEngine. - Tutorials in
examples/, including a new momentum-kick (ultraheavy dark matter) tutorial. - Docs site on ReadTheDocs; all five Yellin figures reproduced at high statistics.
- Breaking:
DEFAULT_CACHEremoved (save/loadtake an explicit path); matplotlib is now theplotextra.
See CHANGELOG.md.
v0.1.0
First tagged release of the cleaned-up, tested, and documented package.
Implements Yellin's maximum-gap and optimum-interval methods for frequentist upper limits in the presence of an unknown, non-subtractable background (Phys. Rev. D66 (2002) 032005, arXiv:physics/0203002).
Highlights
- Installable package with 28 tests: analytic
C_0(Eq. 2), the Monte-Carlo optimum-interval (C_max) andp_maxlimits, and the classical Poisson limit. - Reproduces all five figures of Yellin (2002); out-of-sample coverage verified.
- Docs:
EXPLANATION.md(derivation + reimplement-it-yourself recipe) andTUTORIAL.md(hands-on, from a spectrum to an exclusion curve).
If you use this software, please cite it (see CITATION.cff) and Yellin's paper.