~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/iolibs/export_v4.py

- fix the writing of the param_card in presence of restriction card created on the flight (customize model option)
- fix py8 output mode (include format)
- fix the taudecay model

Show diffs side-by-side

added added

removed removed

Lines of Context:
4987
4987
 
4988
4988
        #1. Check if a default param_card is present:
4989
4989
        done = False
4990
 
        if hasattr(self.model, 'restrict_card'):
 
4990
        if hasattr(self.model, 'restrict_card') and isinstance(self.model.restrict_card, str):
4991
4991
            restrict_name = os.path.basename(self.model.restrict_card)[9:-4]
4992
4992
            model_path = self.model.get('modelpath')
4993
4993
            if os.path.exists(pjoin(model_path,'paramcard_%s.dat' % restrict_name)):