Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix download method of probability models archive in impact plot notebook #1721

Merged
merged 7 commits into from
Dec 5, 2021

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Dec 4, 2021

Description

The nightly notebook tests are failing due to the ImpactPlot notebook because of changes in HEPData. Adopting the new DOIs for the probability models and using pyhf contrib download to properly deal with HEPData headers fixes this.

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR
* Use stable DOI https://doi.org/10.17182/hepdata.89408.v3/r2 to download
probability models archive from HEPData.
   - This version of the 1Lbb probability models uses a pyhf PatchSet, so
     update the impact plot notebook accordingly.
* Use `pyhf contrib download` as it can properly accept HEPData headers.
* Change directories for the impact plot notebook test so that the paths used
in the notebook do not have to be changed to accommodate testing paths.

@matthewfeickert matthewfeickert added docs Documentation related tests pytest fix A bug fix labels Dec 4, 2021
@matthewfeickert matthewfeickert self-assigned this Dec 4, 2021
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@matthewfeickert
Copy link
Member Author

I've run the notebook tests with workflow dispatch and they pass.

@codecov
Copy link

codecov bot commented Dec 4, 2021

Codecov Report

Merging #1721 (099c570) into master (b798ef2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1721   +/-   ##
=======================================
  Coverage   98.12%   98.12%           
=======================================
  Files          64       64           
  Lines        4269     4269           
  Branches      682      682           
=======================================
  Hits         4189     4189           
  Misses         46       46           
  Partials       34       34           
Flag Coverage Δ
contrib 26.25% <ø> (ø)
doctest 60.59% <ø> (ø)
unittests 96.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b798ef2...099c570. Read the comment docs.

@kratsg kratsg merged commit e3c21aa into master Dec 5, 2021
@kratsg kratsg deleted the docs/fix-download-of-1Lbb-models-in-notebook-tests branch December 5, 2021 18:59
@matthewfeickert
Copy link
Member Author

I missed that this is happening for the pull plots example notebook too.

matthewfeickert added a commit that referenced this pull request Dec 8, 2021
…notebook (#1724)

* Use stable DOI https://doi.org/10.17182/hepdata.89408.v3/r2 to download
probability models archive from HEPData.
* Use `pyhf contrib download` as it can properly accept HEPData headers.
* Change directories for the impact plot notebook test so that the paths used
in the notebook do not have to be changed to accommodate testing paths.
* This PR is complimentary to PR #1721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation related fix A bug fix tests pytest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants