~maddevelopers/mg5amcnlo/3.4.0

« back to all changes in this revision

Viewing changes to madgraph/interface/madgraph_interface.py

  • Committer: olivier-mattelaer
  • Date: 2022-04-06 19:53:03 UTC
  • mfrom: (962.3.26 3.2.0_eft_running)
  • Revision ID: olivier-mattelaer-20220406195303-ikpe2rvh6olzimyw
merge with eft_running branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import cmath
25
25
import glob
26
26
import logging
 
27
import operator
27
28
import optparse
28
29
import os
29
30
import pydoc
2902
2903
    _import_formats = ['model_v4', 'model', 'proc_v4', 'command', 'banner']
2903
2904
    _install_opts = ['Delphes', 'MadAnalysis4', 'ExRootAnalysis',
2904
2905
                     'update', 'Golem95', 'QCDLoop', 'maddm', 'maddump',
2905
 
                     'looptools', 'MadSTR']
 
2906
                     'looptools', 'MadSTR', 'RunningCoupling']
2906
2907
    
2907
2908
    # The targets below are installed using the HEPToolsInstaller.py script
2908
2909
    _advanced_install_opts = ['pythia8','zlib','boost','lhapdf6','lhapdf5','collier',
3595
3596
 
3596
3597
        elif args[0] == 'coupling_order':
3597
3598
            hierarchy = list(self._curr_model['order_hierarchy'].items())
3598
 
            #self._curr_model.get_order_hierarchy().items()
3599
 
            def order(first, second):
3600
 
                if first[1] < second[1]:
3601
 
                    return -1
3602
 
                else:
3603
 
                    return 1
3604
 
            hierarchy.sort(order)
 
3599
            hierarchy.sort(key=operator.itemgetter(1))
3605
3600
            for order in hierarchy:
3606
3601
                print(' %s : weight = %s' % order)
3607
3602
 
7496
7491
                raise self.RWError('Could not load processes from file %s' % args[1])
7497
7492
 
7498
7493
 
 
7494
    def post_install_RunningCoupling(self):
 
7495
 
 
7496
        shutil.move('RunningCoupling', pjoin('Template', 'Running'))
 
7497
 
7499
7498
    def do_customize_model(self, line):
7500
7499
        """create a restriction card in a interactive way"""
7501
7500