Fix openmc imports in tests and fix a few paths in run_test.py

This commit is contained in:
Paul Romano 2015-05-22 17:04:27 +07:00
parent 4d2dbff8de
commit acc7b2cf24
89 changed files with 97 additions and 97 deletions

View file

@ -121,7 +121,7 @@ class Test(object):
self.skipped = False
self.valgrind_cmd = ""
self.gcov_cmd = ""
self.cmake = ['cmake', '-H../src', '-Bbuild']
self.cmake = ['cmake', '-H..', '-Bbuild']
# Check for MPI/HDF5
if self.mpi and not self.hdf5:
@ -345,15 +345,15 @@ else:
script_mode = False
# Setup CTest script vars. Not used in non-script mode
pwd = os.environ['PWD']
pwd = os.getcwd()
ctest_vars = {
'source_dir' : pwd + '/../src',
'build_dir' : pwd + '/build',
'host_name' : socket.gethostname(),
'dashboard' : dash,
'submit' : submit,
'update' : update,
'n_procs' : options.n_procs
'source_dir': os.path.join(pwd, '..'),
'build_dir': os.path.join(pwd, 'build'),
'host_name': socket.gethostname(),
'dashboard': dash,
'submit': submit,
'update': update,
'n_procs': options.n_procs
}
# Check project name

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -4,7 +4,7 @@ import sys
import numpy as np
# import statepoint
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint
from openmc import Filter

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import particle restart
import openmc.particle_restart as pr

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import particle restart
import openmc.particle_restart as pr

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc.statepoint as statepoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc.statepoint as statepoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc.statepoint as statepoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc.statepoint as statepoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
import openmc.statepoint as statepoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -4,7 +4,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -17,7 +17,7 @@ except ImportError:
exit()
# Run track processing script
call(['../../src/utils/track.py', '-o', 'poly'] +
call(['../../track.py', '-o', 'poly'] +
glob.glob(''.join((cwd, '/track*'))))
poly = ''.join((cwd, '/poly.pvtp'))
assert os.path.isfile(poly), 'poly.pvtp file not found.'

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,7 @@
import sys
import numpy as np
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint
# read in statepoint file

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint

View file

@ -2,7 +2,7 @@
import sys
sys.path.insert(0, '../../src/utils')
sys.path.insert(0, '../..')
# import statepoint
from openmc.statepoint import StatePoint