Skip to content

Commit

Permalink
comment on what _mtype_result gives us
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Sep 20, 2018
1 parent 758a7da commit 1c76044
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion pyhf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,32 @@ def _mtype_results(self,mtype,pars):
if mtype in self.combined_mods.keys():
return self.combined_mods[mtype].apply(pars)
before the loops.
before the loops. This returns a bookkeeping dictionary of the following structure
_mtype_results_dict == {
channel1: {
sample1: [
mod1.apply(),
mod2.apply(),
...
],
sample2: [
mod1.apply(),
mod3.apply(),
mod5.apply(),
...
]
},
channel2: {
sample2: [
mod2.apply(),
mod3.apply(),
mod4.apply()
],
...
},
...
}
"""
mtype_results = {}
for channel in self.spec['channels']:
Expand Down

0 comments on commit 1c76044

Please sign in to comment.