Skip to content

Commit

Permalink
make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasheinrich committed Dec 29, 2019
1 parent 64beece commit 9f1d872
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pyhf/infer/asymptotics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def generate_asimov_data(asimov_mu, data, pdf, init_pars, par_bounds):
bestfit_nuisance_asimov = fixed_poi_fit(asimov_mu, data, pdf, init_pars, par_bounds)
return pdf.expected_data(bestfit_nuisance_asimov)


class AsymptoticTestStatDistribution(object):
def __init__(self, shift):
self.shift = shift
Expand Down
4 changes: 3 additions & 1 deletion src/pyhf/infer/toybased.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def expected_value(self, nsigma):


class ToyCalculator(object):
def __init__(self, data, pdf, init_pars=None, par_bounds=None, qtilde=False, ntoys = 1000):
def __init__(
self, data, pdf, init_pars=None, par_bounds=None, qtilde=False, ntoys=1000
):
self.ntoys = ntoys
self.data = data
self.pdf = pdf
Expand Down

0 comments on commit 9f1d872

Please sign in to comment.