Skip to content

Commit 8f5d2d5

Browse files
authored
Merge pull request #183 from scikit-hep/eduardo-more-fixes
Fix uploads of coverage tests, missed renamings master -> main
2 parents 808466f + 752044c commit 8f5d2d5

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
push:
10-
branches: [ "master"]
10+
branches: [ "main"]
1111
release:
1212
types:
1313
- "published"
@@ -108,7 +108,7 @@ jobs:
108108
touch docs/_build/html/.nojekyll
109109
110110
- name: Deploy docs to GitHub Pages
111-
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
111+
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/main'
112112
uses: peaceiris/actions-gh-pages@v4
113113
with:
114114
github_token: ${{ secrets.GITHUB_TOKEN }}

docs/getting_started/hypotests.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ In the result you obtain the observed and expected limits. The observed limit is
137137
of 4.518 +/- 5.8 signal candidates in data. The expected limit is the limit under the background only hypothesis.
138138
A graphical representation on how the upper limit is computed in shown in the following figure.
139139

140-
.. image:: https://raw.githubusercontent.com/scikit-hep/hepstats/master/notebooks/hypotests/asy_ul.png
140+
.. image:: https://raw.githubusercontent.com/scikit-hep/hepstats/main/notebooks/hypotests/asy_ul.png

docs/getting_started/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ guide to each submodule:
1313
hypotests
1414
splot
1515

16-
The `binder <https://mybinder.org/v2/gh/scikit-hep/hepstats/master>`_ examples are also a good way to get started.
16+
The `binder <https://mybinder.org/v2/gh/scikit-hep/hepstats/main>`_ examples are also a good way to get started.

docs/getting_started/modeling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ compared to a histogram of this sample with a fine binning.
2424
>>> linewidth=2)
2525
>>> plt.legend(loc=2)
2626
27-
.. image:: https://raw.githubusercontent.com/scikit-hep/hepstats/master/notebooks/modeling/bayesian_blocks_example.png
27+
.. image:: https://raw.githubusercontent.com/scikit-hep/hepstats/main/notebooks/modeling/bayesian_blocks_example.png

docs/getting_started/splot.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
splot
22
#####
33

4-
A full example using the **sPlot** algorithm can be found `here <https://github.com/scikit-hep/hepstats/tree/master/notebooks/splots/splot_example.ipynb>`_ . **sWeights** for different components in a data sample, modeled with a sum of extended probability density functions, are derived using the ``compute_sweights`` function:
4+
A full example using the **sPlot** algorithm can be found `here <https://github.com/scikit-hep/hepstats/tree/main/notebooks/splots/splot_example.ipynb>`_ . **sWeights** for different components in a data sample, modeled with a sum of extended probability density functions, are derived using the ``compute_sweights`` function:
55

66
.. code-block:: python
77

notebooks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Notebooks
22

3-
In this directory are stored all the notebooks demo that you can either run with [binder](https://mybinder.org/v2/gh/scikit-hep/hepstats/master) or by downloading the jupyter notebooks `ipynb` files.
3+
In this directory are stored all the notebooks demo that you can either run with [binder](https://mybinder.org/v2/gh/scikit-hep/hepstats/main) or by downloading the jupyter notebooks `ipynb` files.
44

55
The notebooks are divided for each `submodule`:
66
- `hypotests`:
@@ -18,5 +18,5 @@ The notebooks are divided for each `submodule`:
1818
* bayesian_blocks.ipynb: presentation of the Bayesian Blocks algorithm and comparison with other binning methods.
1919

2020
- `splots`
21-
* splot_example.ipynb: example of `sPlot` on fake mass and momentum distributions for some signal and some background. The `sWeights` are derived using mass fit of a gaussian signal over an exponential background with `zfit`. The `sWeights` are applied on the momentum distribution to retrieve the signal distribution. This example is a reproduction of the example in [hep_ml](https://github.com/arogozhnikov/hep_ml/blob/master/notebooks/sPlot.ipynb) using `hepstats`.
21+
* splot_example.ipynb: example of `sPlot` on fake mass and momentum distributions for some signal and some background. The `sWeights` are derived using mass fit of a gaussian signal over an exponential background with `zfit`. The `sWeights` are applied on the momentum distribution to retrieve the signal distribution. This example is a reproduction of the example in [hep_ml](https://github.com/arogozhnikov/hep_ml/blob/main/notebooks/sPlot.ipynb) using `hepstats`.
2222
* splot_example_2.ipynb: example of `sPlot` on fake mass and lifetime distributions for some signal and some background. The `sWeights` are derived using mass fit of a gaussian signal over an exponential background with `zfit`. The `sWeights` are applied on the lifetime distribution to retrieve the signal distribution. This example is a reproduction of the example of the [LHCb statistics guidelines](https://gitlab.cern.ch/lhcb/statistics-guidelines/-/blob/add_sweights_item/resources/appendix_f4.ipynb) using `hepstats`.

notebooks/hypotests/FC_interval_asy.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"\n",
122122
"90 % CL intervals are evaluated for each $x_n$ for the two following cases, $\\mu > 0$ and $\\mu$ unbounded.\n",
123123
"\n",
124-
"With `hepstats`, The intervals are obtained with `ConfidenceInterval` object using a calculator. Here the calculator is the `AsymptoticCalculator` which computes the intervals using asymptotic formulae (see [Asymptotic formulae for likelihood-based tests of new physics](https://arxiv.org/pdf/1007.1727.pdf)), an example of a 68 % CL interval with the `AsymptoticCalculator` can be found [here](https://github.com/scikit-hep/hepstats/blob/master/notebooks/hypotests/confidenceinterval_asy_zfit.ipynb).\n",
124+
"With `hepstats`, The intervals are obtained with `ConfidenceInterval` object using a calculator. Here the calculator is the `AsymptoticCalculator` which computes the intervals using asymptotic formulae (see [Asymptotic formulae for likelihood-based tests of new physics](https://arxiv.org/pdf/1007.1727.pdf)), an example of a 68 % CL interval with the `AsymptoticCalculator` can be found [here](https://github.com/scikit-hep/hepstats/blob/main/notebooks/hypotests/confidenceinterval_asy_zfit.ipynb).\n",
125125
"\n",
126126
"The option `qtilde = True` should be used if $\\mu > 0$."
127127
]

notebooks/hypotests/FC_interval_freq.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"\n",
122122
"90 % CL intervals are evaluated for each $x_n$ for the two following cases, $\\mu > 0$ and $\\mu$ unbounded.\n",
123123
"\n",
124-
"With `hepstats`, The intervals are obtained with `ConfidenceInterval` object using a calculator. Here the calculator is the `FrequentistCalculator` which computes the intervals using toys, an example of a 68 % CL interval with the `FrequentistCalculator` can be found [here](https://github.com/scikit-hep/hepstats/blob/master/notebooks/hypotests/confidenceinterval_freq_zfit.ipynb).\n",
124+
"With `hepstats`, The intervals are obtained with `ConfidenceInterval` object using a calculator. Here the calculator is the `FrequentistCalculator` which computes the intervals using toys, an example of a 68 % CL interval with the `FrequentistCalculator` can be found [here](https://github.com/scikit-hep/hepstats/blob/main/notebooks/hypotests/confidenceinterval_freq_zfit.ipynb).\n",
125125
"\n",
126126
"The option `qtilde = True` should be used if $\\mu > 0$."
127127
]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "hepstats"
7-
description = "statistics tools and utilities"
7+
description = "HEP statistics tools and utilities"
88
authors = [{ name = "Matthieu Marinangeli", email = "[email protected]" }]
99
maintainers = [{ name = "Scikit-HEP", email = "[email protected]" }]
1010
license = { text = "BSD 3-Clause License" }

src/hepstats/hypotests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hypotests
22

3-
This submodule provides tools to do hypothesis tests such as discovery test and computations of upper limits or confidence intervals. hepstats needs a fitting backend to perform computations such as [zfit](https://github.com/zfit/zfit). Any fitting library can be used if their API is compatible with hepstats (see [api checks](https://github.com/scikit-hep/hepstats/blob/master/hepstats/hypotests/fitutils/api_check.py)).
3+
This submodule provides tools to do hypothesis tests such as discovery test and computations of upper limits or confidence intervals. hepstats needs a fitting backend to perform computations such as [zfit](https://github.com/zfit/zfit). Any fitting library can be used if their API is compatible with hepstats (see [api checks](https://github.com/scikit-hep/hepstats/blob/main/hepstats/hypotests/fitutils/api_check.py)).
44

55
We give here a simple example of a discovery test, using the [zfit](https://github.com/zfit/zfit)
66
fitting package as backend, of a Gaussian signal with known mean and sigma over an exponential background.

0 commit comments

Comments
 (0)