~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/fks/fks_base.py

  • Committer: olivier Mattelaer
  • Date: 2015-03-05 00:14:16 UTC
  • mfrom: (258.1.9 2.3)
  • mto: (258.8.1 2.3)
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: olivier.mattelaer@uclouvain.be-20150305001416-y9mzeykfzwnl9t0j
partial merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
logger = logging.getLogger('madgraph.fks_base')
32
32
 
33
33
 
 
34
class NoBornException(Exception): pass
 
35
 
34
36
#===============================================================================
35
37
# FKS Process
36
38
#===============================================================================
102
104
        try:
103
105
            # Now generating the borns for the first time.
104
106
            super(FKSMultiProcess, self).__init__(*arguments,**options)
105
 
        except InvalidCmd as error:
 
107
        except diagram_generation.NoDiagramException as error:
106
108
            # If no born, then this process most likely does not have any.
107
 
            raise InvalidCmd, "Born diagrams could not be generated for the "+\
 
109
            raise NoBornException, "Born diagrams could not be generated for the "+\
108
110
               self['process_definitions'][0].nice_string().replace('Process',\
109
111
               'process')+". Notice that aMC@NLO does not handle loop-induced"+\
110
112
               " processes yet, but you can still use MadLoop if you want to "+\