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: Correct fixed_params type to tuple or list #2420

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Jan 5, 2024

Description

Resolves #2419.

fixed_params is an iterable that is of type tuple or list. Though operations on it may support tensor types, not all operations will necessarily be supported and so the docs should not list it as being a tensor.

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
* `fixed_params` is an iterable that is of type tuple or list. Though
  operations on it may support tensor types, not all operations will
  necessarily be supported and so the docs should not list it as being
  a tensor.

* `fixed_params` is an iterable that is of type tuple or list. Though operations
  on it may support tensor types, not all operations will necessarily be supported
  and so the docs should not list it as being a tensor.
@matthewfeickert matthewfeickert added docs Documentation related fix A bug fix need-to-backport tmp label until can be backported to patch release branch labels Jan 5, 2024
@matthewfeickert matthewfeickert self-assigned this Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5154cda) 98.28% compared to head (f6621ff) 98.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2420   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files          69       69           
  Lines        4539     4539           
  Branches      803      803           
=======================================
  Hits         4461     4461           
  Misses         45       45           
  Partials       33       33           
Flag Coverage Δ
contrib 97.86% <ø> (ø)
doctest 60.71% <ø> (ø)
unittests-3.10 96.29% <ø> (ø)
unittests-3.11 96.29% <ø> (ø)
unittests-3.8 96.32% <ø> (ø)
unittests-3.9 96.34% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kratsg kratsg merged commit f2ce224 into main Jan 5, 2024
20 checks passed
@kratsg kratsg deleted the fix/correct-tensor-to-list branch January 5, 2024 14:42
@matthewfeickert matthewfeickert removed the need-to-backport tmp label until can be backported to patch release branch label Jan 5, 2024
matthewfeickert added a commit that referenced this pull request Jan 5, 2024
* Backport PR #2420
* `fixed_params` is an iterable that is of type tuple or list. Though
  operations on it may support tensor types, not all operations will
  necessarily be supported and so the docs should not list it as being
  a tensor.
matthewfeickert added a commit that referenced this pull request Jan 5, 2024
* The original PR was PR #2420 and the backport PR was PR #2428.
* Amends PR #2430.
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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

ValueError: The truth value of an array ... when using fixed_params kwarg for pyhf.infer.hypotest
2 participants