Skip to content

Commit

Permalink
fix doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Sep 30, 2023
1 parent a7c6f6d commit 418ec1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class MyModel(Model):
# signal

mu_mod = modifier(name="mu", parameter=parameters["mu"], effect=unconstrained())
res.add(process="signal", expectation=mu_mod(self.processes["signal"]))
res.add(process="signal", expectation=mu_mod(processes["signal"]))

# background
bkg_mod = modifier(name="sigma", parameter=parameters["sigma"], effect=gauss(0.2))
res.add(process="background", expectation=bkg_mod(self.processes["background"]))
res.add(process="background", expectation=bkg_mod(processes["background"]))
return res


Expand Down
4 changes: 2 additions & 2 deletions src/dilax/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def __call__(self, processes: HistDB, parameters: dict[str, Parameter]) -> Resul
# signal
mu_mod = modifier(name="mu", parameter=parameters["mu"], effect=unconstrained())
res.add(process="signal", expectation=mu_mod(self.processes["signal"]))
res.add(process="signal", expectation=mu_mod(processes["signal"]))
# background
bkg_mod = modifier(name="sigma", parameter=parameters["sigma"], effect=lnN(0.2))
res.add(process="background", expectation=bkg_mod(self.processes["background"]))
res.add(process="background", expectation=bkg_mod(processes["background"]))
return res
Expand Down

0 comments on commit 418ec1f

Please sign in to comment.