~maddevelopers/mg5amcnlo/new_clustering

« back to all changes in this revision

Viewing changes to Template/MadWeight/mod_file/mod_file.py

  • Committer: Rikkert Frederix
  • Date: 2021-09-09 15:51:40 UTC
  • mfrom: (78.75.502 3.2.1)
  • Revision ID: frederix@physik.uzh.ch-20210909155140-rg6umfq68h6h47cf
merge with 3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
3
#Extension
 
4
from __future__ import absolute_import
 
5
from __future__ import print_function
4
6
import string
5
7
import os
6
8
import sys
7
9
import time
8
10
import re
 
11
from six.moves import range
9
12
 
10
13
############################################################################
11
14
##                          PARAMETER
21
24
    
22
25
#SECURITY POINT
23
26
    if type(list_input)!=list:
24
 
        print 'subroutine need at least two files for fuse'
 
27
        print('subroutine need at least two files for fuse')
25
28
        return 0
26
29
    
27
30
    if output in list_input:
28
 
        print 'output file cann\'t have the same name than an input file'
 
31
        print('output file cann\'t have the same name than an input file')
29
32
        return 0
30
33
 
31
34
#initialisation
179
182
 
180
183
    file_in.close()
181
184
    file_out.close()
182
 
    print 'no need of mod_photon_flux'
 
185
    print('no need of mod_photon_flux')
183
186
    sys.exit()
184
187
    return
185
188