Skip to content

Commit

Permalink
improve the error message for characters to check in rwgt_names
Browse files Browse the repository at this point in the history
  • Loading branch information
efeyazgan committed Apr 16, 2024
1 parent d90d077 commit f3a060a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3a060a

Please sign in to comment.