Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Makayla Trask committed Feb 22, 2024
1 parent f6a954b commit 1b47b5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flamedisx/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def __init__(
for key in value:
arguments[key] = dict()
param_defaults = dict()


# needs fixing / generalizing
self.dsetnames = list(sources.keys())

if defaults is None:
Expand Down Expand Up @@ -172,6 +173,7 @@ def __init__(
self.sources[sname] = s
del sources # so we don't use it by accident

# flatten arguments
self.arguments = dict()
for dsetname in arguments.keys():
for sname, sargs in arguments[dsetname].items():
Expand Down Expand Up @@ -519,7 +521,7 @@ def mu(self, *,
# can input mu_ref as an optional arg in the template source class
# obviously this will need to be adjusted for tensor calc
if (self.sources[sname].mu_ref is not None):
mu += (self.sources[sname].mu_ref * filtered_params[self.POI_range])
mu += (self.sources[sname].mu_ref * self.POI_range)
else:
mu += (self._get_rate_mult(sname, kwargs)
* self.mu_estimators[sname](**filtered_params))
Expand Down

0 comments on commit 1b47b5a

Please sign in to comment.