Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Oct 25, 2021
1 parent 3bb162c commit 9ea3230
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyhf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def expected_data(self, pars, return_by_sample=False):
# Verify parameter shapes
if pars.shape[-1] != self.config.npars:
raise exceptions.InvalidPdfParameters(
f'eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected'
f"eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected"
)

deltas, factors = self._modifications(pars)
Expand Down Expand Up @@ -714,7 +714,7 @@ def expected_auxdata(self, pars):
# Verify parameter shapes
if pars.shape[-1] != self.config.npars:
raise exceptions.InvalidPdfParameters(
f'eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected'
f"eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected"
)

return self.make_pdf(pars)[1].expected_data()
Expand Down Expand Up @@ -743,7 +743,7 @@ def expected_actualdata(self, pars):
# Verify parameter shapes
if pars.shape[-1] != self.config.npars:
raise exceptions.InvalidPdfParameters(
f'eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected'
f"eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected"
)

return self.make_pdf(pars)[0].expected_data()
Expand All @@ -764,7 +764,7 @@ def expected_data(self, pars, include_auxdata=True):
# Verify parameter shapes
if pars.shape[-1] != self.config.npars:
raise exceptions.InvalidPdfParameters(
f'eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected'
f"eval failed as pars has len {pars.shape[-1]} but {self.config.npars} was expected"
)

if not include_auxdata:
Expand Down

0 comments on commit 9ea3230

Please sign in to comment.