Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 19, 2020
1 parent d85503b commit ea2d39a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pyhf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ def logpdf(self, auxdata, pars):
class _MainModel:
"""Factory class to create pdfs for the main measurement."""

def __init__(self, config, mega_mods, nominal_rates, custom_modifiers = None,batch_size = None):
def __init__(
self, config, mega_mods, nominal_rates, custom_modifiers=None, batch_size=None
):
self.custom_modifiers = custom_modifiers or []
self.config = config
self._factor_mods = [
Expand Down Expand Up @@ -514,9 +516,7 @@ def expected_data(self, pars, return_by_sample=False):
pars = tensorlib.astensor(pars)
customs, deltas, factors = self._modifications(pars)

allsum = tensorlib.concatenate(
customs + deltas + [self.nominal_rates]
)
allsum = tensorlib.concatenate(customs + deltas + [self.nominal_rates])

nom_plus_delta = tensorlib.sum(allsum, axis=0)
nom_plus_delta = tensorlib.reshape(
Expand All @@ -541,7 +541,7 @@ def expected_data(self, pars, return_by_sample=False):
class Model:
"""The main pyhf model class."""

def __init__(self, spec, custom_modifiers = None, batch_size=None, **config_kwargs):
def __init__(self, spec, custom_modifiers=None, batch_size=None, **config_kwargs):
"""
Construct a HistFactory Model.
Expand Down

0 comments on commit ea2d39a

Please sign in to comment.