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

fix: custom modifier / new parameter support and test #1644

Merged
merged 10 commits into from
Oct 17, 2021

Conversation

lukasheinrich
Copy link
Contributor

@lukasheinrich lukasheinrich commented Oct 15, 2021

Description

this fixes a bug in #1625 and a test that would catch it

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
* Fix a regression introduced in PR #1625
* Check that the poi set is an existing parameter in the model
* Add tests for custom modifiers to cover the use case and make sure it's caught

@lukasheinrich lukasheinrich force-pushed the custom_modifier_hotfix_and_notebook branch from 00b6a20 to c64ae42 Compare October 15, 2021 08:34
@codecov
Copy link

codecov bot commented Oct 15, 2021

Codecov Report

Merging #1644 (cefe78b) into master (10e22fd) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1644   +/-   ##
=======================================
  Coverage   98.03%   98.03%           
=======================================
  Files          63       63           
  Lines        4129     4129           
  Branches      566      566           
=======================================
  Hits         4048     4048           
  Misses         48       48           
  Partials       33       33           
Flag Coverage Δ
contrib 24.99% <0.00%> (ø)
unittests 97.82% <100.00%> (ø)

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

Impacted Files Coverage Δ
src/pyhf/pdf.py 97.70% <100.00%> (ø)

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 10e22fd...cefe78b. Read the comment docs.

@lukasheinrich lukasheinrich changed the title custom modifier text custom modifier test Oct 15, 2021
@lukasheinrich lukasheinrich changed the title custom modifier test fix: custom modifier / new parameter support and test Oct 15, 2021
@matthewfeickert matthewfeickert added fix A bug fix tests pytest labels Oct 15, 2021
Copy link
Contributor

@kratsg kratsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a test to assert that we can catch the exception correctly.

@lukasheinrich
Copy link
Contributor Author

@kratsg added

@lukasheinrich lukasheinrich force-pushed the custom_modifier_hotfix_and_notebook branch from 17b9637 to 5b7d2f7 Compare October 15, 2021 23:51
Copy link
Member

@matthewfeickert matthewfeickert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍 Thanks @lukasheinrich — this is great!

@kratsg kratsg merged commit 2275660 into master Oct 17, 2021
@kratsg kratsg deleted the custom_modifier_hotfix_and_notebook branch October 17, 2021 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix tests pytest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants