|
13 | 13 |
|
14 | 14 | from typing import Union, Text, Tuple, Dict, List |
15 | 15 | from spey import ExpectationType, StatisticalModel, get_backend |
| 16 | +from spey.system.exceptions import AsimovTestStatZero |
16 | 17 | from smodels.base.smodelsLogging import logger |
17 | 18 | from smodels.base.physicsUnits import fb |
18 | 19 | from smodels.experiment.datasetObj import DataSet |
@@ -206,7 +207,7 @@ def getStatModelMultiBin(self, |
206 | 207 | if hasattr ( ds.dataInfo, "thirdMoment" ): |
207 | 208 | thirdmomenta.append ( ds.dataInfo.thirdMoment ) |
208 | 209 | if len(thirdmomenta)==0: # SLv1 |
209 | | - stat_wrapper = get_backend("default_pdf.correlated_background") |
| 210 | + stat_wrapper = get_backend("default.correlated_background") |
210 | 211 | if _debug["writePoint"]: |
211 | 212 | f=open ( "data.txt","wt" ) |
212 | 213 | f.write ( f"obsN={obsN}\n" ) |
@@ -376,7 +377,7 @@ def poi_upper_limit ( self, expected : Union [ bool, Text ], |
376 | 377 | except ValueError as e: |
377 | 378 | logger.warning ( f"when computing upper limit for SL: {e}. Will try with other method" ) |
378 | 379 | sys.exit(-1) |
379 | | - except spey.system.exceptions.AsimovTestStatZero as e: |
| 380 | + except AsimovTestStatZero as e: |
380 | 381 | logger.debug ( f"spey returned: {e}. will interpret as ul=inf" ) |
381 | 382 | ret = float("inf") |
382 | 383 | ret = float(ret) # cast for the printers |
|
0 commit comments