From 5560060ba219d1f4e3e75703c3961ee51354db59 Mon Sep 17 00:00:00 2001 From: Tamas Vami Date: Wed, 6 Dec 2023 11:03:52 +0100 Subject: [PATCH] Fix the case when filter eff is negative in the fragement --- bin/utils/request_fragment_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/utils/request_fragment_check.py b/bin/utils/request_fragment_check.py index 8aa81441fad0..515ab725b09c 100755 --- a/bin/utils/request_fragment_check.py +++ b/bin/utils/request_fragment_check.py @@ -635,7 +635,7 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False): print("Filter efficiency in fragment =" + str(filter_eff_fragment)) print("Filter efficiency from generator parameters field = "+str(filter_eff)) # see https://github.com/cms-sw/genproductions/issues/3269 - if len(filter_eff_fragment) > 0 and float(filter_eff_fragment) < 1.0: + if len(filter_eff_fragment) > 0 and float(filter_eff_fragment) < 1.0 and float(filter_eff_fragment) > 0: if filter_eff_fragment and filter_eff and int(ext) == 0 and float(filter_eff_fragment) != float(filter_eff): errors.append("In general, filter efficiency in the fragment is not taken into accout. Please make sure that the filter efficiency in the generator parameters field is correct!")