~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/iolibs/export_fks.py

  • Committer: olivier-mattelaer
  • Date: 2019-03-03 20:54:56 UTC
  • mfrom: (281.1.10 2.6.6)
  • mto: (283.1.18 2.7.0)
  • mto: This revision was merged to the branch mainline in revision 284.
  • Revision ID: olivier-mattelaer-20190303205456-zqzilqf1yrmxdr2g
merge with 2.6.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
        
400
400
        text=''
401
401
        for i,e in enumerate(initial_states):
402
 
            if len(e) ==1:
403
 
                e.append(0)
404
402
            text=text+str(i+1)+' '+str(len(e))
405
403
            for t in e:
 
404
                if len(t) ==1:
 
405
                    t.append(0)
406
406
                text=text+'   '
407
407
                try:
408
408
                    for p in t:
 
409
                        if p == None : p = 0
409
410
                        text=text+' '+str(p)
410
411
                except TypeError:
411
412
                        text=text+' '+str(t)