~maddevelopers/mg5amcnlo/3.0.2-alpha0-merged3.2.0

« back to all changes in this revision

Viewing changes to madgraph/iolibs/gen_infohtml.py

  • Committer: olivier-mattelaer
  • Date: 2021-05-06 14:57:23 UTC
  • mfrom: (956.2.9 3.0)
  • Revision ID: olivier-mattelaer-20210506145723-oasykft3zdy37td2
merge with 3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#
15
15
################################################################################
16
16
 
 
17
from __future__ import absolute_import
17
18
import string
18
19
import os
19
20
import re
20
21
import sys
21
22
 
22
23
import madgraph.various.misc as misc
 
24
from six.moves import range
23
25
 
24
26
template_text= string.Template("""
25
27
<HTML> 
241
243
        nb_diag = 0
242
244
                
243
245
        pat = re.compile(r'''Amplitude\(s\) for diagram number (\d+)''' )
244
 
       
 
246
        if not os.path.exists(path):
 
247
            path = os.path.join(self.dir, 'SubProcesses', proc, 'matrix%s_orig.f' % id)
245
248
        text = open(path).read()
246
249
        for match in re.finditer(pat, text):
247
250
            pass