From ea2d39a22516e5d05fd666205a1c321a3ea0d503 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2020 17:24:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pyhf/pdf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pyhf/pdf.py b/src/pyhf/pdf.py index 382c81a127..43a590b306 100644 --- a/src/pyhf/pdf.py +++ b/src/pyhf/pdf.py @@ -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 = [ @@ -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( @@ -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.