~maddevelopers/mg5amcnlo/new_clustering

« back to all changes in this revision

Viewing changes to tests/parallel_tests/loop_sample_script.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:
20
20
inheritance of the MERunner class.
21
21
"""
22
22
 
 
23
from __future__ import absolute_import
23
24
import logging
24
25
import logging.config
25
26
import pydoc
31
32
sys.path.append(mg5_path)
32
33
pickle_path = os.path.join(mg5_path,'tests','parallel_tests','input_files')
33
34
 
34
 
import loop_me_comparator
35
 
import me_comparator
 
35
from . import loop_me_comparator
 
36
from . import me_comparator
36
37
from madgraph import MG4DIR
37
38
mg4_path = os.getcwd()
38
39
 
160
161
    # Print the output
161
162
    my_comp.output_result(filename=filename)
162
163
 
163
 
    pydoc.pager(file(filename,'r').read())
 
164
    pydoc.pager(open(filename,'r').read())
164
165
 
165
166
    # Print a list of non zero processes
166
167
    #print my_comp.get_non_zero_processes()