Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 40ec66b

Browse files
authored
Merge pull request #3875 from vlimant/patch-1
no parsing of nThreads
2 parents 24f3ed5 + d58e2a7 commit 40ec66b

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

bin/utils/request_fragment_check.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,18 +1111,20 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
11111111
errors.append(str(len(herwig_check)) + " missing fragment line(s) for herwig: lines for internal matrix element are missing in the fragment."+herwig_check)
11121112
if fsize == 0:
11131113
warnings.append("No fragment associated to this request. Is this the hadronizer you intended to use?: "+gettest)
1114-
ttxt = os.popen('grep nThreads '+pi_file+'_get_test').read()
1115-
ntread_new = 1
1116-
if not ttxt:
1117-
ttxt = os.popen('grep "# Threads for each sequence" '+pi_file+'_get_test').read()
1118-
print(ttxt)
1119-
nthreads = int(re.search(r'\d+',ttxt).group())
1120-
if not nthreads: ntread_new = 0
1121-
if ntread_new == 0:
1122-
if int(os.popen('grep -c nThreads '+pi_file+'_get_test').read()) == 0 :
1123-
nthreads = 1
1124-
else :
1125-
nthreads = int(re.search('nThreads(.*?) --',ttxt).group(1))
1114+
1115+
# the check on nthreads is not actually used, hence not necessary to parse and fail for that number
1116+
#ttxt = os.popen('grep nThreads '+pi_file+'_get_test').read()
1117+
#ntread_new = 1
1118+
#if not ttxt:
1119+
# ttxt = os.popen('grep "# Threads for each sequence" '+pi_file+'_get_test').read()
1120+
# print(ttxt)
1121+
# nthreads = int(re.search(r'\d+',ttxt).group())
1122+
# if not nthreads: ntread_new = 0
1123+
#if ntread_new == 0:
1124+
# if int(os.popen('grep -c nThreads '+pi_file+'_get_test').read()) == 0 :
1125+
# nthreads = 1
1126+
# else :
1127+
# nthreads = int(re.search('nThreads(.*?) --',ttxt).group(1))
11261128

11271129
if "SnowmassWinter21" not in pi and particle_gun == 0 and pi not in concurrency_check_exception_list and "matchbox" not in data_f1.lower() and "CepGenGeneratorFilter" not in data_f1:
11281130
conc_check_result, tmp_err = concurrency_check(data_f1,pi,cmssw_version,mg_gp)

0 commit comments

Comments
 (0)