From 7b8a1eca2b6e2b4c7d1185069e4b0136ef3fa0d3 Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 11 Jan 2024 12:54:36 -0500 Subject: [PATCH 1/6] update docstring --- src/spey_pyhf/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spey_pyhf/interface.py b/src/spey_pyhf/interface.py index 399730d..0564c7b 100644 --- a/src/spey_pyhf/interface.py +++ b/src/spey_pyhf/interface.py @@ -444,7 +444,7 @@ def combine(self, other, **kwargs): ``CombinationError``: Raised if its not possible to combine statistical models. Returns: - :obj:~spey-pyhf.interface.FullStatisticalModel: + :obj:`~spey-pyhf.interface.FullStatisticalModel`: Combined statistical model. """ assert isinstance( From 9030f989b7ce8a85f2058efed2fb1d53961ae579 Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 11 Jan 2024 12:54:43 -0500 Subject: [PATCH 2/6] update pyhf version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 875de98..29ef623 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("src/spey_pyhf/_version.py", mode="r", encoding="UTF-8") as f: version = f.readlines()[-1].split()[-1].strip("\"'") -requirements = ["pyhf==0.7.3", "spey>=0.1.1"] +requirements = ["pyhf==0.7.6", "spey>=0.1.1"] docs = [ "sphinx==6.2.1", From 54590b6c01a2391fb6c028c9ace7fd692b0a89d6 Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 11 Jan 2024 13:47:51 -0500 Subject: [PATCH 3/6] update email --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 29ef623..43d8027 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ }, download_url=f"https://github.com/SpeysideHEP/spey-pyhf/archive/refs/tags/v{version}.tar.gz", author="Jack Y. Araz", - author_email=("jack.araz@durham.ac.uk"), + author_email=("jackaraz@jlab.org"), license="MIT", package_dir={"": "src"}, packages=find_packages(where="src"), From 3a2b12e362a6dfde9fb0b74da6276e94ebc6ad7e Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 11 Jan 2024 13:48:22 -0500 Subject: [PATCH 4/6] change doc theme --- docs/conf.py | 43 ++++++++++++++++++++++++++++++++++++------- docs/requirements.txt | 1 + 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 76ef854..8e5b611 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,7 +45,7 @@ ] # set the width of the page -sphinx_rtd_size_width = "75%" +# sphinx_rtd_size_width = "75%" # external links xref_links = { @@ -56,11 +56,11 @@ "1202.3415": ("[arXiv:1202.3415]", "https://doi.org/10.48550/arXiv.1202.3415"), } -source_suffix = { - ".rst": "restructuredtext", - ".txt": "restructuredtext", - ".md": "markdown", -} +# source_suffix = { +# ".rst": "restructuredtext", +# ".txt": "restructuredtext", +# ".md": "markdown", +# } bibtex_default_style = "unsrt" @@ -91,7 +91,36 @@ # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = "sphinx_rtd_theme" +html_theme = "sphinx_book_theme" + +html_theme_options = { + "repository_provider": "github", + "repository_url": "https://github.com/SpeysideHEP/spey-pyhf", + "use_repository_button": True, # add a 'link to repository' button + "use_issues_button": False, # add an 'Open an Issue' button + "path_to_docs": "docs", + "use_edit_page_button": True, + "use_fullscreen_button": True, + # "launch_buttons": { + # "colab_url": "https://colab.research.google.com/", + # }, + "show_navbar_depth": 1, + "icon_links": [ + { + "name": "GitHub", + "url": "https://github.com/SpeysideHEP/spey-pyhf", + "icon": "fa-brands fa-github", + }, + { + "name": "arXiv", + "url": "https://arxiv.org/abs/2307.06996", + "icon": "https://img.shields.io/static/v1?style=plastic&label=arXiv&message=2307.06996&color=brightgreen", + "type": "url", + }, + ], +} + + html_static_path = ["_static"] html_css_files = ["css/custom.css"] diff --git a/docs/requirements.txt b/docs/requirements.txt index b53730e..489c8c7 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -8,3 +8,4 @@ sphinx-copybutton>=0.3.2 sphinx-togglebutton>=0.3.0 myst-parser sphinx-rtd-size +sphinx-book-theme \ No newline at end of file From af307eb1ba3908de24d9e5d42d1f2fc3cadbac7b Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 11 Jan 2024 13:48:34 -0500 Subject: [PATCH 5/6] bump version --- src/spey_pyhf/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spey_pyhf/_version.py b/src/spey_pyhf/_version.py index 2ea50fc..3f329aa 100644 --- a/src/spey_pyhf/_version.py +++ b/src/spey_pyhf/_version.py @@ -1,3 +1,3 @@ """Version of the spey - pyhf plugin""" -__version__ = "0.1.1" +__version__ = "0.1.2" From 94a048fe96a597b767ce4913fbfd19692aedd85b Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 11 Jan 2024 13:50:10 -0500 Subject: [PATCH 6/6] update changelog --- docs/releases/changelog-v0.1.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/releases/changelog-v0.1.md b/docs/releases/changelog-v0.1.md index 24522a0..fae1ac6 100644 --- a/docs/releases/changelog-v0.1.md +++ b/docs/releases/changelog-v0.1.md @@ -15,6 +15,9 @@ * Fixed parameters have been added to the constraints list. ([#2](https://github.com/SpeysideHEP/spey-pyhf/pull/2)) +* Update `pyhf` version. + ([#8](https://github.com/SpeysideHEP/spey-pyhf/pull/8)) + ## Bug fixes * Bugfix in apriori likelihood computation for full likelihoods mentioned in