Skip to content

Commit

Permalink
Merge branch 'develop' of git+ssh://github.com/SModelS/smodels into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
WolfgangWaltenberger committed May 22, 2024
2 parents 5d8c342 + 551bd4f commit a98da46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smodels/matching/theoryPrediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ def likelihood(self, mu=1.0, expected=False, return_nll=False, useCached=True):
expected = expected,
return_nll = True )
self.cachedNlls[expected][mu] = nll

if abs(mu) < 1e-5:
self.cachedObjs[expected]["nll_sm"] = nll

return self.nllToLikelihood ( nll, return_nll )

def nllToLikelihood ( self, nll : Union[None,float], return_nll : bool ):
Expand Down Expand Up @@ -724,7 +728,7 @@ def _getCombinedResultFor(dataSetResults, expResult):

if all([True if "CR" in predList[0].dataset.dataInfo.dataId else False for predList in dataSetResults]): # Don't give combined result if all regions are CRs
return None

if len(dataSetResults) == 1:
return dataSetResults[0]
elif not expResult.hasCovarianceMatrix() and not expResult.hasJsonFile():
Expand Down

0 comments on commit a98da46

Please sign in to comment.