Skip to content

Commit 48a6114

Browse files
committed
add protection against invalid xsec
1 parent a8b9926 commit 48a6114

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

madanalysis/misc/run_recast.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,11 @@ def compute_cls(self, analyses, dataset):
12611261
)
12621262
return False
12631263

1264+
if dataset.xsection <= 0:
1265+
self.logger.error(
1266+
f"Cross section for {dataset.name} is not defined. Skipping the CLs calculation."
1267+
)
1268+
return False
12641269
# Setup statistical models
12651270
statistical_models = initialise_statistical_models(
12661271
regiondata=regiondata,

0 commit comments

Comments
 (0)