Skip to content

Commit 25ecdfb

Browse files
lorenzenniomatthewfeickert
authored andcommitted
improve qmu and qmu_tilde warnings
1 parent 4d215a7 commit 25ecdfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyhf/infer/test_statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def qmu(mu, data, pdf, init_pars, par_bounds, fixed_params, return_fitted_pars=F
134134
if par_bounds[pdf.config.poi_index][0] == 0:
135135
log.warning(
136136
'qmu test statistic used for fit configuration with POI bounded at zero.\n'
137-
+ 'Use the qmu_tilde test statistic (pyhf.infer.test_statistics.qmu_tilde) instead.'
137+
+ 'Use the qmu_tilde test statistic (pyhf.infer.test_statistics.qmu_tilde) instead. Set test_stat="qtilde".'
138138
)
139139
return _qmu_like(
140140
mu,
@@ -229,7 +229,7 @@ def qmu_tilde(
229229
if par_bounds[pdf.config.poi_index][0] != 0:
230230
log.warning(
231231
'qmu_tilde test statistic used for fit configuration with POI not bounded at zero.\n'
232-
+ 'Use the qmu test statistic (pyhf.infer.test_statistics.qmu) instead.'
232+
+ 'Use the qmu test statistic (pyhf.infer.test_statistics.qmu) instead. Set test_stat="q".'
233233
)
234234
return _qmu_like(
235235
mu,

0 commit comments

Comments
 (0)