Skip to content

Commit

Permalink
Merge pull request #3704 from cms-sw/full_proc_card_to_log
Browse files Browse the repository at this point in the history
add full proc card to the log
  • Loading branch information
efeyazgan authored May 8, 2024
2 parents f38589a + 6001335 commit c064bdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/utils/request_fragment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,12 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False):
if os.path.isfile(fname_p2) is True : filename_pc = fname_p2
if os.path.isfile(fname_p3) is True : filename_pc = fname_p3
if os.path.isfile(filename_pc) is True :
print("---------Full process card--------------------------")
proccardfile = open(filename_pc)
for linepc in proccardfile.readlines():
if (linepc.startswith("#")) is False:
print(linepc.strip("\n"))
print("------End of full process card----------------------\n")
mg_nlo = int(os.popen('grep -c "\[QCD\]" '+filename_pc).read())
loop_flag = int(os.popen('more '+filename_pc+' | grep -c "noborn=QCD"').read())
gen_line = os.popen('grep generate '+filename_pc).read()
Expand Down

0 comments on commit c064bdb

Please sign in to comment.