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

feat: Configurable default backend #1646

Merged
merged 31 commits into from
Oct 22, 2021
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c9d2f25
move get_backend/set_backend out of init, and refactor things slightl…
kratsg Oct 15, 2021
14e332d
fix some codefactors
kratsg Oct 15, 2021
0df8642
use non-globals
kratsg Oct 15, 2021
fe576d9
flake8/lint
kratsg Oct 15, 2021
c531b56
dropped an import, whoops
kratsg Oct 15, 2021
a70b8c2
fix up optimize
kratsg Oct 15, 2021
2f484f3
raise attributeerror
kratsg Oct 15, 2021
ec2e8f0
drop from docs/api
kratsg Oct 15, 2021
08dfa02
minor fixes
kratsg Oct 15, 2021
bb7b26f
tests
kratsg Oct 18, 2021
0606092
handle other error
kratsg Oct 18, 2021
b011275
Merge branch 'master' into feat/configurable-default-backend
kratsg Oct 18, 2021
ce6ec11
Merge branch 'master' into feat/configurable-default-backend
kratsg Oct 18, 2021
5455fa3
fix up
kratsg Oct 18, 2021
66ab686
fix up
kratsg Oct 19, 2021
7d759f6
fix up more
kratsg Oct 19, 2021
97dcde7
fix last test
kratsg Oct 19, 2021
91c5419
last last last fix
kratsg Oct 19, 2021
75a8978
Merge branch 'master' into feat/configurable-default-backend
kratsg Oct 19, 2021
7eeeec5
make sure we test all backgrounds with default backend
kratsg Oct 19, 2021
8c2ee8e
add tests to handle the use case
kratsg Oct 19, 2021
8bdc252
xfail tests
kratsg Oct 19, 2021
45415cf
use db=pyhf.db
kratsg Oct 20, 2021
86c61fb
Merge branch 'master' into feat/configurable-default-backend
matthewfeickert Oct 22, 2021
7e135e0
Update tests/test_simplemodels.py
kratsg Oct 22, 2021
a9c5ba1
Update tests/test_simplemodels.py
kratsg Oct 22, 2021
8977db8
remove optimize from public api
kratsg Oct 22, 2021
399665f
move only events up
kratsg Oct 22, 2021
500d923
move import up
kratsg Oct 22, 2021
f01cf38
Merge branch 'master' into feat/configurable-default-backend
kratsg Oct 22, 2021
972435c
wworking?
kratsg Oct 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove optimize from public api
kratsg committed Oct 22, 2021
commit 8977db8e2cd7ff4dab199a412020187e3435daab
2 changes: 0 additions & 2 deletions src/pyhf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pyhf.tensor import BackendRetriever as tensor
from pyhf.optimize import OptimizerRetriever as optimize
from pyhf.tensor.manager import get_backend
from pyhf.tensor.manager import set_backend
from pyhf._version import version as __version__
@@ -23,7 +22,6 @@
"infer",
"interpolators",
"modifiers",
"optimize",
"optimizer",
"parameters",
"patchset",
1 change: 0 additions & 1 deletion tests/test_public_api_repr.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ def test_top_level_public_api():
"infer",
"interpolators",
"modifiers",
"optimize",
"optimizer",
"parameters",
"patchset",