From f3a060a803a533fd99719926e29a55a757dddc1c Mon Sep 17 00:00:00 2001 From: Efe Date: Tue, 16 Apr 2024 14:57:38 +0200 Subject: [PATCH] improve the error message for characters to check in rwgt_names --- 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 546de7faaaeb..06f407225a8b 100755 --- a/bin/utils/request_fragment_check.py +++ b/bin/utils/request_fragment_check.py @@ -1138,7 +1138,7 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False): chars_to_check = set('@#$%^&*()+-[]{}\ ') chars_to_check_warning = set('.') if any((chars in chars_to_check) for chars in reweights): - errors.append("Please remove problematic characters (at least one of @#$%^&*()+-[]{}.\) from rwgt_names. See https://github.com/cms-sw/genproductions/blob/master/bin/MadGraph5_aMCatNLO/gridpack_generation.sh#L102. This causes the header in mg5 to be corrupted and nano-aod will not work.") + errors.append("Please remove problematic characters (at least one of @#$%^&*()+-[]{} or 'space') from rwgt_names. See https://github.com/cms-sw/genproductions/blob/d90d07744601da677eff41a17c4398bb2309f0f5/bin/MadGraph5_aMCatNLO/gridpack_generation.sh#L116. This causes the header in mg5 to be corrupted and nano-aod will not work.") if any((chars in chars_to_check_warning) for chars in reweights): warnings.append('The existence of a "." in reweight_card will result in the name of the weight not to be shown in the header. Please make sure if this is a problem for your analysis, if not, please remove the dot') if mg_gp is True: