Skip to content

Commit

Permalink
Merge pull request #8 from SpeysideHEP/update_dependencies
Browse files Browse the repository at this point in the history
Update `pyhf` version
  • Loading branch information
jackaraz authored Jan 11, 2024
2 parents 75d188a + 94a048f commit 08ffc96
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 11 deletions.
43 changes: 36 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
]

# set the width of the page
sphinx_rtd_size_width = "75%"
# sphinx_rtd_size_width = "75%"

# external links
xref_links = {
Expand All @@ -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"

Expand Down Expand Up @@ -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"]

Expand Down
3 changes: 3 additions & 0 deletions docs/releases/changelog-v0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ sphinx-copybutton>=0.3.2
sphinx-togglebutton>=0.3.0
myst-parser
sphinx-rtd-size
sphinx-book-theme
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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=("[email protected]"),
author_email=("[email protected]"),
license="MIT",
package_dir={"": "src"},
packages=find_packages(where="src"),
Expand Down
2 changes: 1 addition & 1 deletion src/spey_pyhf/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version of the spey - pyhf plugin"""

__version__ = "0.1.1"
__version__ = "0.1.2"
2 changes: 1 addition & 1 deletion src/spey_pyhf/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 08ffc96

Please sign in to comment.