Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-05-18 08:30:45

0001 bufsize = 1000000
0002 
0003 with open('pythia6_ep_10k_5x41GeV.lund') as infile:
0004     with open('pythia6_ep_10k_5x41GeV.stripped.lund', 'w') as outfile:
0005         while True:
0006             lines = infile.readlines(bufsize)
0007             if not lines:
0008                 break
0009             for i, line in enumerate(lines):
0010                 if i < 6:
0011                     continue
0012                 if line[3] == '=':
0013                     continue
0014                 outfile.write(line)
0015