diff --git a/.gitignore b/.gitignore index c92c10340..bfa33d856 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,9 @@ # Compiler python objects *.pyc -# OpenMC executable -src/openmc +# Python distribution +dist/ +openmc.egg-info/ # Inputs generated from Python API examples/python/**/*.xml @@ -25,7 +26,7 @@ docs/build docs/source/_images/*.pdf # Source build -src/build +build # build from src/utils/setup.py src/utils/build @@ -33,9 +34,6 @@ src/utils/build # xml-fortran reader src/xml-fortran/xmlreader -# Modules built from XML templates -src/templates/*.f90 - # Test results error file results_error.dat @@ -61,4 +59,4 @@ data/nndc # PyCharm project configuration files .idea -.idea/* \ No newline at end of file +.idea/* diff --git a/src/CMakeLists.txt b/CMakeLists.txt similarity index 91% rename from src/CMakeLists.txt rename to CMakeLists.txt index 12f408618..e335dfd57 100644 --- a/src/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,29 +169,29 @@ endif() # Only initialize git submodules if it is not there. User is responsible # for future updates of fox xml submodule. -if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/xml/fox/.git) - if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../.git) +if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/xml/fox/.git) + if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git) message("-- Cloning FoX XML git repository...") execute_process(COMMAND git clone https://github.com/mit-crpg/fox.git src/xml/fox - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) execute_process(COMMAND git checkout bdc852f4f43d969fb1b179cba79295c1e095a455 - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/xml/fox) + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/xml/fox) else() message("-- Initializing/Updating FoX XML submodule...") execute_process(COMMAND git submodule init - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) execute_process(COMMAND git submodule update - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endif() endif() -add_subdirectory(xml/fox) +add_subdirectory(src/xml/fox) #=============================================================================== # Build OpenMC executable #=============================================================================== set(program "openmc") -file(GLOB source *.F90 xml/openmc_fox.F90) +file(GLOB source src/*.F90 src/xml/openmc_fox.F90) add_executable(${program} ${source}) target_link_libraries(${program} ${libraries} fox_dom) set_target_properties(${program} PROPERTIES @@ -203,28 +203,16 @@ set_target_properties(${program} PROPERTIES #=============================================================================== install(TARGETS ${program} RUNTIME DESTINATION bin) -install(PROGRAMS utils/plot_mesh_tally.py - DESTINATION bin - RENAME plot_mesh_tally) -install(PROGRAMS utils/statepoint_histogram.py - DESTINATION bin - RENAME statepoint_histogram) -install(PROGRAMS utils/update_inputs.py - DESTINATION bin - RENAME update_inputs) -install(PROGRAMS utils/xml_validate.py - DESTINATION bin - RENAME xml_validate) -install(DIRECTORY relaxng DESTINATION share) -install(FILES ../man/man1/openmc.1 DESTINATION share/man/man1) -install(FILES ../LICENSE DESTINATION "share/doc/${program}/copyright") +install(DIRECTORY src/relaxng DESTINATION share/openmc) +install(FILES man/man1/openmc.1 DESTINATION share/man/man1) +install(FILES LICENSE DESTINATION "share/doc/${program}/copyright") find_package(PythonInterp) if(PYTHONINTERP_FOUND) install(CODE "execute_process( COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix=${CMAKE_INSTALL_PREFIX} - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/utils)") + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})") endif() #=============================================================================== @@ -235,7 +223,7 @@ endif() include(CTest) # Get a list of all the tests to run -file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/../tests/test_*.py) +file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_*.py) # Check for MEM_CHECK and COVERAGE variables if (DEFINED ENV{MEM_CHECK}) diff --git a/src/CTestConfig.cmake b/CTestConfig.cmake similarity index 100% rename from src/CTestConfig.cmake rename to CTestConfig.cmake diff --git a/src/Makefile b/Makefile similarity index 100% rename from src/Makefile rename to Makefile diff --git a/data/get_nndc_data.py b/data/get_nndc_data.py index 5df69f3ac..18c94dd64 100755 --- a/data/get_nndc_data.py +++ b/data/get_nndc_data.py @@ -21,8 +21,8 @@ except ImportError: from urllib2 import urlopen cwd = os.getcwd() -sys.path.append(os.path.join(cwd, '..', 'src', 'utils')) -from convert_binary import ascii_to_binary +sys.path.insert(0, os.path.join(cwd, '..')) +from openmc.ace import ascii_to_binary baseUrl = 'http://www.nndc.bnl.gov/endf/b7.1/aceFiles/' files = ['ENDF-B-VII.1-neutron-293.6K.tar.gz', diff --git a/docs/source/quickinstall.rst b/docs/source/quickinstall.rst index 1ffebbebe..b64dfebda 100644 --- a/docs/source/quickinstall.rst +++ b/docs/source/quickinstall.rst @@ -43,8 +43,7 @@ the following commands in a terminal: git clone https://github.com/mit-crpg/openmc.git cd openmc git checkout -b master origin/master - mkdir src/build - cd src/build + mkdir build && cd build cmake .. make sudo make install diff --git a/docs/source/usersguide/input.rst b/docs/source/usersguide/input.rst index d1fbd567d..3489292bb 100644 --- a/docs/source/usersguide/input.rst +++ b/docs/source/usersguide/input.rst @@ -55,23 +55,20 @@ files are called: Validating XML Files -------------------- -Input files can be checked before executing OpenMC using the ``xml_validate`` -script. It is located in ``src/utils/xml_validate.py`` in the source code or in -``bin/xml_validate`` in the install directory. - -Two command line arguments can be set when running ``xml_validate``: +Input files can be checked before executing OpenMC using the +``openmc-validate-xml`` script which is installed alongside the Python API. Two +command line arguments can be set when running ``openmc-validate-xml``: * ``-i``, ``--input-path`` - Location of OpenMC input files. *Default*: current working directory * ``-r``, ``--relaxng-path`` - Location of OpenMC RelaxNG files. *Default*: None -If the RelaxNG path is not set, ``xml_validate`` will search for these files -because it expects that the user is either running the script located in the -install directory ``bin`` folder or in ``src/utils``. Once executed, it will -match OpenMC XML files with their RelaxNG schema and check if they are valid. -Below is a table of the messages that will be printed after each file is -checked. +If the RelaxNG path is not set, the script will search for these files because +it expects that the user is either running the script located in the install +directory ``bin`` folder or in ``src/utils``. Once executed, it will match +OpenMC XML files with their RelaxNG schema and check if they are valid. Below +is a table of the messages that will be printed after each file is checked. ======================== =================================== Message Description @@ -193,7 +190,7 @@ should be performed. It has the following attributes/sub-elements: *Default*: None :threshold: - The precision trigger's convergence criterion for the + The precision trigger's convergence criterion for the combined :math:`k_{eff}`. *Default*: None @@ -646,16 +643,16 @@ particle number, respectively. ------------------------- OpenMC includes tally precision triggers which allow the user to define -uncertainty thresholds on :math:`k_{eff}` in the ```` subelement of -``settings.xml``, and/or tallies in ``tallies.xml``. When using triggers, +uncertainty thresholds on :math:`k_{eff}` in the ```` subelement of +``settings.xml``, and/or tallies in ``tallies.xml``. When using triggers, OpenMC will run until it completes as many batches as defined by ````. -At this point, the uncertainties on all tallied values are computed and -compared with their corresponding trigger thresholds. If any triggers have not -been met, OpenMC will continue until either all trigger thresholds have been +At this point, the uncertainties on all tallied values are computed and +compared with their corresponding trigger thresholds. If any triggers have not +been met, OpenMC will continue until either all trigger thresholds have been satisfied or ```` has been reached. The ```` element provides an active "toggle switch" for tally -precision trigger(s), the maximum number of batches and the batch interval. It +precision trigger(s), the maximum number of batches and the batch interval. It has the following attributes/sub-elements: :active: @@ -674,11 +671,11 @@ has the following attributes/sub-elements: OpenMC will check if the trigger has been reached at each batch defined by ``batch_interval`` after the minimum number of batches is reached. - .. note:: If this tag is not present, the ``batch_interval`` is predicted - dynamically by OpenMC for each convergence check. The predictive - model assumes no correlation between fission sources - distributions from batch-to-batch. This assumption is reasonable - for fixed source and small criticality calculations, but is very + .. note:: If this tag is not present, the ``batch_interval`` is predicted + dynamically by OpenMC for each convergence check. The predictive + model assumes no correlation between fission sources + distributions from batch-to-batch. This assumption is reasonable + for fixed source and small criticality calculations, but is very optimistic for highly coupled full-core reactor problems. @@ -1391,8 +1388,8 @@ The ```` element accepts the following sub-elements: Number of scoring events :trigger: - Precision trigger applied to all filter bins and nuclides for this tally. - It must specify the trigger's type, threshold and scores to which it will + Precision trigger applied to all filter bins and nuclides for this tally. + It must specify the trigger's type, threshold and scores to which it will be applied. It has the following attributes/sub-elements: :type: diff --git a/docs/source/usersguide/install.rst b/docs/source/usersguide/install.rst index d06806d98..848c6ecaa 100644 --- a/docs/source/usersguide/install.rst +++ b/docs/source/usersguide/install.rst @@ -112,7 +112,7 @@ repository:: By default, the cloned repository will be set to the development branch. To switch to the source of the latest stable release, run the following commands:: - cd openmc/src + cd openmc git checkout master .. _GitHub: https://github.com/mit-crpg/openmc @@ -132,14 +132,13 @@ following .. code-block:: sh - mkdir src/build - cd src/build + mkdir build && cd build cmake .. make Note that first a build directory is created as a subdirectory of the source -directory. The Makefile in ``src/`` will automatically perform an out-of-source -build with default options. +directory. The Makefile in the top-level directory will automatically perform an +out-of-source build with default options. CMakeLists.txt Options ++++++++++++++++++++++ @@ -166,7 +165,7 @@ should be used: .. code-block:: sh - cmake -Ddebug=on /path/to/src + cmake -Ddebug=on /path/to/openmc Compiling with MPI ++++++++++++++++++ @@ -177,14 +176,14 @@ the MPI Fortran wrapper. For example, in a bash shell: .. code-block:: sh export FC=mpif90 - cmake /path/to/src + cmake /path/to/openmc Note that in many shells, an environment variable can be set for a single command, i.e. .. code-block:: sh - FC=mpif90 cmake /path/to/src + FC=mpif90 cmake /path/to/openmc Compiling with HDF5 +++++++++++++++++++ @@ -195,14 +194,14 @@ the HDF5 Fortran wrapper. For example, in a bash shell: .. code-block:: sh export FC=h5fc - cmake /path/to/src + cmake /path/to/openmc As noted above, an environment variable can typically be set for a single command, i.e. .. code-block:: sh - FC=h5fc cmake /path/to/src + FC=h5fc cmake /path/to/openmc To compile with support for both MPI and HDF5, use the parallel HDF5 wrapper ``h5pfc`` instead. Note that this requires that your HDF5 installation be @@ -216,8 +215,7 @@ the root directory of the source code: .. code-block:: sh - mkdir src/build - cd src/build + mkdir build && cd build cmake .. make make install @@ -267,7 +265,8 @@ the source code root directory: .. code-block:: sh - cd src + mkdir build && cd build + cmake .. make This will build an executable named ``openmc``. @@ -293,7 +292,6 @@ in the root directory of the OpenMC distribution: .. code-block:: sh - cd src make This will build an executable named ``openmc``. @@ -312,7 +310,6 @@ the source directory and run the following: .. code-block:: sh - cd src make test If you want more options for testing you can use ctest_ command. For example, @@ -320,7 +317,7 @@ if we wanted to run only the plot tests with 4 processors, we run: .. code-block:: sh - cd src/build + cd build ctest -j 4 -R plot If you want to run the full test suite with different build options please @@ -365,12 +362,12 @@ the following steps must be taken: 2. In the root directory, a file named ``xsdir``, or some variant thereof, should be present. This file contains a listing of all the cross sections and is used by MCNP. This file should be converted to a ``cross_sections.xml`` - file for use with OpenMC. A Python script is provided in the OpenMC - distribution for this purpose: + file for use with OpenMC. A utility is provided in the OpenMC distribution + for this purpose: .. code-block:: sh - openmc/src/utils/convert_xsdir.py xsdir31 cross_sections.xml + openmc/scripts/openmc-xsdir-to-xml xsdir31 cross_sections.xml 3. In the converted ``cross_sections.xml`` file, change the contents of the element to the absolute path of the directory containing the @@ -416,9 +413,8 @@ Running OpenMC Once you have a model built (see :ref:`usersguide_input`), you can either run the openmc executable directly from the directory containing your XML input files, or you can specify as a command-line argument the directory containing -the XML input files. For example, if the path of your OpenMC executable is -``/home/username/openmc/src/openmc`` and your XML input files are in the -directory ``/home/username/somemodel/``, one way to run the simulation would be: +the XML input files. For example, if your XML input files are in the directory +``/home/username/somemodel/``, one way to run the simulation would be: .. code-block:: sh diff --git a/src/utils/openmc/__init__.py b/openmc/__init__.py similarity index 100% rename from src/utils/openmc/__init__.py rename to openmc/__init__.py diff --git a/src/utils/convert_binary.py b/openmc/ace.py old mode 100755 new mode 100644 similarity index 88% rename from src/utils/convert_binary.py rename to openmc/ace.py index 48477c27e..3606b1e94 --- a/src/utils/convert_binary.py +++ b/openmc/ace.py @@ -1,9 +1,5 @@ -#!/usr/bin/env python - from __future__ import division - from struct import pack -import sys def ascii_to_binary(ascii_file, binary_file): @@ -67,11 +63,3 @@ def ascii_to_binary(ascii_file, binary_file): # Close binary file binary.close() - -if __name__ == '__main__': - # Check for proper number of arguments - if len(sys.argv) < 3: - sys.exit('Usage: {0} ascii_file binary_file'.format(sys.argv[0])) - - # Convert ASCII file - ascii_to_binary(sys.argv[1], sys.argv[2]) diff --git a/src/utils/openmc/checkvalue.py b/openmc/checkvalue.py similarity index 100% rename from src/utils/openmc/checkvalue.py rename to openmc/checkvalue.py diff --git a/src/utils/openmc/clean_xml.py b/openmc/clean_xml.py similarity index 100% rename from src/utils/openmc/clean_xml.py rename to openmc/clean_xml.py diff --git a/src/utils/openmc/cmfd.py b/openmc/cmfd.py similarity index 100% rename from src/utils/openmc/cmfd.py rename to openmc/cmfd.py diff --git a/src/utils/openmc/constants.py b/openmc/constants.py similarity index 100% rename from src/utils/openmc/constants.py rename to openmc/constants.py diff --git a/src/utils/openmc/element.py b/openmc/element.py similarity index 100% rename from src/utils/openmc/element.py rename to openmc/element.py diff --git a/src/utils/openmc/executor.py b/openmc/executor.py similarity index 100% rename from src/utils/openmc/executor.py rename to openmc/executor.py diff --git a/src/utils/openmc/filter.py b/openmc/filter.py similarity index 100% rename from src/utils/openmc/filter.py rename to openmc/filter.py diff --git a/src/utils/openmc/geometry.py b/openmc/geometry.py similarity index 100% rename from src/utils/openmc/geometry.py rename to openmc/geometry.py diff --git a/src/utils/openmc/material.py b/openmc/material.py similarity index 100% rename from src/utils/openmc/material.py rename to openmc/material.py diff --git a/src/utils/openmc/mesh.py b/openmc/mesh.py similarity index 100% rename from src/utils/openmc/mesh.py rename to openmc/mesh.py diff --git a/src/utils/openmc/nuclide.py b/openmc/nuclide.py similarity index 100% rename from src/utils/openmc/nuclide.py rename to openmc/nuclide.py diff --git a/src/utils/openmc/opencg_compatible.py b/openmc/opencg_compatible.py similarity index 100% rename from src/utils/openmc/opencg_compatible.py rename to openmc/opencg_compatible.py diff --git a/src/utils/openmc/particle_restart.py b/openmc/particle_restart.py similarity index 100% rename from src/utils/openmc/particle_restart.py rename to openmc/particle_restart.py diff --git a/src/utils/openmc/plots.py b/openmc/plots.py similarity index 100% rename from src/utils/openmc/plots.py rename to openmc/plots.py diff --git a/src/utils/openmc/settings.py b/openmc/settings.py similarity index 100% rename from src/utils/openmc/settings.py rename to openmc/settings.py diff --git a/src/utils/openmc/statepoint.py b/openmc/statepoint.py similarity index 100% rename from src/utils/openmc/statepoint.py rename to openmc/statepoint.py diff --git a/src/utils/openmc/summary.py b/openmc/summary.py similarity index 100% rename from src/utils/openmc/summary.py rename to openmc/summary.py diff --git a/src/utils/openmc/surface.py b/openmc/surface.py similarity index 100% rename from src/utils/openmc/surface.py rename to openmc/surface.py diff --git a/src/utils/openmc/tallies.py b/openmc/tallies.py similarity index 100% rename from src/utils/openmc/tallies.py rename to openmc/tallies.py diff --git a/src/utils/openmc/trigger.py b/openmc/trigger.py similarity index 100% rename from src/utils/openmc/trigger.py rename to openmc/trigger.py diff --git a/src/utils/openmc/universe.py b/openmc/universe.py similarity index 100% rename from src/utils/openmc/universe.py rename to openmc/universe.py diff --git a/scripts/openmc-ascii-to-binary b/scripts/openmc-ascii-to-binary new file mode 100755 index 000000000..e707e2a85 --- /dev/null +++ b/scripts/openmc-ascii-to-binary @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +from openmc.ace import ascii_to_binary +import sys + + +if __name__ == '__main__': + # Check for proper number of arguments + if len(sys.argv) < 3: + sys.exit('Usage: {0} ascii_file binary_file'.format(sys.argv[0])) + + # Convert ASCII file + ascii_to_binary(sys.argv[1], sys.argv[2]) diff --git a/src/utils/memory_usage.py b/scripts/openmc-memory-usage similarity index 100% rename from src/utils/memory_usage.py rename to scripts/openmc-memory-usage diff --git a/src/utils/plot_mesh_tally.py b/scripts/openmc-plot-mesh-tally similarity index 100% rename from src/utils/plot_mesh_tally.py rename to scripts/openmc-plot-mesh-tally diff --git a/src/utils/statepoint_3d.py b/scripts/openmc-statepoint-3d similarity index 100% rename from src/utils/statepoint_3d.py rename to scripts/openmc-statepoint-3d diff --git a/src/utils/statepoint_histogram.py b/scripts/openmc-statepoint-histogram similarity index 100% rename from src/utils/statepoint_histogram.py rename to scripts/openmc-statepoint-histogram diff --git a/src/utils/tally_conv.py b/scripts/openmc-tally-convergence similarity index 100% rename from src/utils/tally_conv.py rename to scripts/openmc-tally-convergence diff --git a/src/utils/track.py b/scripts/openmc-track-to-vtk similarity index 100% rename from src/utils/track.py rename to scripts/openmc-track-to-vtk diff --git a/src/utils/update_inputs.py b/scripts/openmc-update-inputs similarity index 100% rename from src/utils/update_inputs.py rename to scripts/openmc-update-inputs diff --git a/src/utils/xml_validate.py b/scripts/openmc-validate-xml similarity index 100% rename from src/utils/xml_validate.py rename to scripts/openmc-validate-xml diff --git a/src/utils/voxel.py b/scripts/openmc-voxel-to-silovtk similarity index 100% rename from src/utils/voxel.py rename to scripts/openmc-voxel-to-silovtk diff --git a/src/utils/convert_xsdata.py b/scripts/openmc-xsdata-to-xml similarity index 100% rename from src/utils/convert_xsdata.py rename to scripts/openmc-xsdata-to-xml diff --git a/src/utils/convert_xsdir.py b/scripts/openmc-xsdir-to-xml similarity index 100% rename from src/utils/convert_xsdir.py rename to scripts/openmc-xsdir-to-xml diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..b86582dd0 --- /dev/null +++ b/setup.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python + +import glob +import os +try: + from setuptools import setup + have_setuptools = True +except ImportError: + from distutils.core import setup + have_setuptools = False + +kwargs = {'name': 'openmc', + 'version': '0.6.2', + 'packages': ['openmc'], + 'scripts': glob.glob('scripts/openmc-*'), + + # Metadata + 'author': 'Will Boyd', + 'author_email': 'wbinventor@gmail.com', + 'description': 'OpenMC Python API', + 'url': 'https://github.com/mit-crpg/openmc', + 'classifiers': [ + 'Intended Audience :: Developers', + 'Intended Audience :: End Users/Desktop', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: MIT License', + 'Natural Language :: English', + 'Programming Language :: Python', + 'Topic :: Scientific/Engineering' + ]} + +if have_setuptools: + kwargs.update({ + # Required dependencies + 'install_requires': ['numpy', 'scipy', 'h5py', 'matplotlib'], + + # Optional dependencies + 'extras_require': { + 'pandas': ['pandas'], + 'vtk': ['vtk', 'silomesh'], + 'validate': ['lxml'] + }}) + +setup(**kwargs) diff --git a/src/utils/setup.py b/src/utils/setup.py deleted file mode 100644 index 72682aea9..000000000 --- a/src/utils/setup.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -from distutils.core import setup - -setup(name='openmc', - version='0.6.2', - description='OpenMC Python API', - author='Will Boyd', - author_email='wbinventor@gmail.com', - url='https://github.com/mit-crpg/openmc', - packages=['openmc']) diff --git a/tests/run_tests.py b/tests/run_tests.py index 3a8296083..1679fa5c3 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -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 diff --git a/tests/test_basic/results.py b/tests/test_basic/results.py index 55087f58c..03f3e4b43 100644 --- a/tests/test_basic/results.py +++ b/tests/test_basic/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_cmfd_feed/results.py b/tests/test_cmfd_feed/results.py index 869b785f3..fe38537b3 100644 --- a/tests/test_cmfd_feed/results.py +++ b/tests/test_cmfd_feed/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc from openmc.statepoint import StatePoint diff --git a/tests/test_cmfd_nofeed/results.py b/tests/test_cmfd_nofeed/results.py index d22c2b2b4..0ba4d2c98 100644 --- a/tests/test_cmfd_nofeed/results.py +++ b/tests/test_cmfd_nofeed/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc from openmc.statepoint import StatePoint diff --git a/tests/test_confidence_intervals/results.py b/tests/test_confidence_intervals/results.py index 63208a987..3f215b287 100644 --- a/tests/test_confidence_intervals/results.py +++ b/tests/test_confidence_intervals/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_density_atombcm/results.py b/tests/test_density_atombcm/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_density_atombcm/results.py +++ b/tests/test_density_atombcm/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_density_atomcm3/results.py b/tests/test_density_atomcm3/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_density_atomcm3/results.py +++ b/tests/test_density_atomcm3/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_density_kgm3/results.py b/tests/test_density_kgm3/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_density_kgm3/results.py +++ b/tests/test_density_kgm3/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_density_sum/results.py b/tests/test_density_sum/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_density_sum/results.py +++ b/tests/test_density_sum/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_eigenvalue_genperbatch/results.py b/tests/test_eigenvalue_genperbatch/results.py index 6b61666a6..a84a6f652 100644 --- a/tests/test_eigenvalue_genperbatch/results.py +++ b/tests/test_eigenvalue_genperbatch/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_eigenvalue_no_inactive/results.py b/tests/test_eigenvalue_no_inactive/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_eigenvalue_no_inactive/results.py +++ b/tests/test_eigenvalue_no_inactive/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_energy_grid/results.py b/tests/test_energy_grid/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_energy_grid/results.py +++ b/tests/test_energy_grid/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_entropy/results.py b/tests/test_entropy/results.py index 843bf4631..e0d0d97c5 100644 --- a/tests/test_entropy/results.py +++ b/tests/test_entropy/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_cell/results.py b/tests/test_filter_cell/results.py index e113be6d7..e8ee1d2d5 100644 --- a/tests/test_filter_cell/results.py +++ b/tests/test_filter_cell/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_cellborn/results.py b/tests/test_filter_cellborn/results.py index e113be6d7..e8ee1d2d5 100644 --- a/tests/test_filter_cellborn/results.py +++ b/tests/test_filter_cellborn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_distribcell/results.py b/tests/test_filter_distribcell/results.py index a1dc38ebd..90a5572cf 100644 --- a/tests/test_filter_distribcell/results.py +++ b/tests/test_filter_distribcell/results.py @@ -3,8 +3,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 diff --git a/tests/test_filter_energy/results.py b/tests/test_filter_energy/results.py index 63208a987..3f215b287 100644 --- a/tests/test_filter_energy/results.py +++ b/tests/test_filter_energy/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_energyout/results.py b/tests/test_filter_energyout/results.py index 19cd4d9a3..1574bbc25 100644 --- a/tests/test_filter_energyout/results.py +++ b/tests/test_filter_energyout/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_group_transfer/results.py b/tests/test_filter_group_transfer/results.py index 19cd4d9a3..1574bbc25 100644 --- a/tests/test_filter_group_transfer/results.py +++ b/tests/test_filter_group_transfer/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_material/results.py b/tests/test_filter_material/results.py index 63208a987..3f215b287 100644 --- a/tests/test_filter_material/results.py +++ b/tests/test_filter_material/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_mesh_2d/results.py b/tests/test_filter_mesh_2d/results.py index 63208a987..3f215b287 100644 --- a/tests/test_filter_mesh_2d/results.py +++ b/tests/test_filter_mesh_2d/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_mesh_3d/results.py b/tests/test_filter_mesh_3d/results.py index 63208a987..3f215b287 100644 --- a/tests/test_filter_mesh_3d/results.py +++ b/tests/test_filter_mesh_3d/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_filter_universe/results.py b/tests/test_filter_universe/results.py index 63208a987..3f215b287 100644 --- a/tests/test_filter_universe/results.py +++ b/tests/test_filter_universe/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_fixed_source/results.py b/tests/test_fixed_source/results.py index 0e7a3e017..80ae5515d 100644 --- a/tests/test_fixed_source/results.py +++ b/tests/test_fixed_source/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_infinite_cell/results.py b/tests/test_infinite_cell/results.py index 9b8c89cd2..c70b1a6de 100644 --- a/tests/test_infinite_cell/results.py +++ b/tests/test_infinite_cell/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_lattice/results.py b/tests/test_lattice/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_lattice/results.py +++ b/tests/test_lattice/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_lattice_hex/results.py b/tests/test_lattice_hex/results.py index ae613eee6..021609f24 100644 --- a/tests/test_lattice_hex/results.py +++ b/tests/test_lattice_hex/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_lattice_mixed/results.py b/tests/test_lattice_mixed/results.py index dc021dc22..953e81046 100644 --- a/tests/test_lattice_mixed/results.py +++ b/tests/test_lattice_mixed/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_lattice_multiple/results.py b/tests/test_lattice_multiple/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_lattice_multiple/results.py +++ b/tests/test_lattice_multiple/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_natural_element/results.py b/tests/test_natural_element/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_natural_element/results.py +++ b/tests/test_natural_element/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_output/results.py b/tests/test_output/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_output/results.py +++ b/tests/test_output/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_particle_restart_eigval/results.py b/tests/test_particle_restart_eigval/results.py index 2ff1ef2b8..adb0b3d7c 100644 --- a/tests/test_particle_restart_eigval/results.py +++ b/tests/test_particle_restart_eigval/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import particle restart +sys.path.insert(0, '../..') import openmc.particle_restart as pr # read in particle restart file diff --git a/tests/test_particle_restart_fixed/results.py b/tests/test_particle_restart_fixed/results.py index 6c9a40d5a..1c01db35c 100644 --- a/tests/test_particle_restart_fixed/results.py +++ b/tests/test_particle_restart_fixed/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import particle restart +sys.path.insert(0, '../..') import openmc.particle_restart as pr # read in particle restart file diff --git a/tests/test_ptables_off/results.py b/tests/test_ptables_off/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_ptables_off/results.py +++ b/tests/test_ptables_off/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_reflective_cone/results.py b/tests/test_reflective_cone/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_reflective_cone/results.py +++ b/tests/test_reflective_cone/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_reflective_cylinder/results.py b/tests/test_reflective_cylinder/results.py index 21e060889..b194e843e 100644 --- a/tests/test_reflective_cylinder/results.py +++ b/tests/test_reflective_cylinder/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc.statepoint as statepoint # read in statepoint file diff --git a/tests/test_reflective_plane/results.py b/tests/test_reflective_plane/results.py index 21e060889..b194e843e 100644 --- a/tests/test_reflective_plane/results.py +++ b/tests/test_reflective_plane/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc.statepoint as statepoint # read in statepoint file diff --git a/tests/test_reflective_sphere/results.py b/tests/test_reflective_sphere/results.py index 21e060889..b194e843e 100644 --- a/tests/test_reflective_sphere/results.py +++ b/tests/test_reflective_sphere/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc.statepoint as statepoint # read in statepoint file diff --git a/tests/test_resonance_scattering/results.py b/tests/test_resonance_scattering/results.py index fdecf48f8..084bcc683 100644 --- a/tests/test_resonance_scattering/results.py +++ b/tests/test_resonance_scattering/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_rotation/results.py b/tests/test_rotation/results.py index 21e060889..b194e843e 100644 --- a/tests/test_rotation/results.py +++ b/tests/test_rotation/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc.statepoint as statepoint # read in statepoint file diff --git a/tests/test_salphabeta/results.py b/tests/test_salphabeta/results.py index 21e060889..b194e843e 100644 --- a/tests/test_salphabeta/results.py +++ b/tests/test_salphabeta/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') import openmc.statepoint as statepoint # read in statepoint file diff --git a/tests/test_salphabeta_multiple/results.py b/tests/test_salphabeta_multiple/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_salphabeta_multiple/results.py +++ b/tests/test_salphabeta_multiple/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_MT/results.py b/tests/test_score_MT/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_MT/results.py +++ b/tests/test_score_MT/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_absorption/results.py b/tests/test_score_absorption/results.py index c6c923710..ac9a0e91b 100644 --- a/tests/test_score_absorption/results.py +++ b/tests/test_score_absorption/results.py @@ -4,9 +4,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_current/results.py b/tests/test_score_current/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_current/results.py +++ b/tests/test_score_current/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_events/results.py b/tests/test_score_events/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_events/results.py +++ b/tests/test_score_events/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_fission/results.py b/tests/test_score_fission/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_fission/results.py +++ b/tests/test_score_fission/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_flux/results.py b/tests/test_score_flux/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_flux/results.py +++ b/tests/test_score_flux/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_flux_yn/results.py b/tests/test_score_flux_yn/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_flux_yn/results.py +++ b/tests/test_score_flux_yn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_kappafission/results.py b/tests/test_score_kappafission/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_kappafission/results.py +++ b/tests/test_score_kappafission/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_nufission/results.py b/tests/test_score_nufission/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_nufission/results.py +++ b/tests/test_score_nufission/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_nuscatter/results.py b/tests/test_score_nuscatter/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_nuscatter/results.py +++ b/tests/test_score_nuscatter/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_nuscatter_n/results.py b/tests/test_score_nuscatter_n/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_nuscatter_n/results.py +++ b/tests/test_score_nuscatter_n/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_nuscatter_pn/results.py b/tests/test_score_nuscatter_pn/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_nuscatter_pn/results.py +++ b/tests/test_score_nuscatter_pn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_nuscatter_yn/results.py b/tests/test_score_nuscatter_yn/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_nuscatter_yn/results.py +++ b/tests/test_score_nuscatter_yn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_scatter/results.py b/tests/test_score_scatter/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_scatter/results.py +++ b/tests/test_score_scatter/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_scatter_n/results.py b/tests/test_score_scatter_n/results.py index 63208a987..3f215b287 100644 --- a/tests/test_score_scatter_n/results.py +++ b/tests/test_score_scatter_n/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_scatter_pn/results.py b/tests/test_score_scatter_pn/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_scatter_pn/results.py +++ b/tests/test_score_scatter_pn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_scatter_yn/results.py b/tests/test_score_scatter_yn/results.py index 40b65f9da..d2cb9adc0 100644 --- a/tests/test_score_scatter_yn/results.py +++ b/tests/test_score_scatter_yn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_total/results.py b/tests/test_score_total/results.py index 1384d45d1..3022c3272 100644 --- a/tests/test_score_total/results.py +++ b/tests/test_score_total/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_score_total_yn/results.py b/tests/test_score_total_yn/results.py index 86ccd719d..c858d6baa 100644 --- a/tests/test_score_total_yn/results.py +++ b/tests/test_score_total_yn/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_seed/results.py b/tests/test_seed/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_seed/results.py +++ b/tests/test_seed/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_source_angle_mono/results.py b/tests/test_source_angle_mono/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_source_angle_mono/results.py +++ b/tests/test_source_angle_mono/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_source_energy_maxwell/results.py b/tests/test_source_energy_maxwell/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_source_energy_maxwell/results.py +++ b/tests/test_source_energy_maxwell/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_source_energy_mono/results.py b/tests/test_source_energy_mono/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_source_energy_mono/results.py +++ b/tests/test_source_energy_mono/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_source_file/results.py b/tests/test_source_file/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_source_file/results.py +++ b/tests/test_source_file/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_source_point/results.py b/tests/test_source_point/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_source_point/results.py +++ b/tests/test_source_point/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_sourcepoint_batch/results.py b/tests/test_sourcepoint_batch/results.py index 1e51de783..47e9dcdc9 100644 --- a/tests/test_sourcepoint_batch/results.py +++ b/tests/test_sourcepoint_batch/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_sourcepoint_interval/results.py b/tests/test_sourcepoint_interval/results.py index 1e51de783..47e9dcdc9 100644 --- a/tests/test_sourcepoint_interval/results.py +++ b/tests/test_sourcepoint_interval/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_sourcepoint_latest/results.py b/tests/test_sourcepoint_latest/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_sourcepoint_latest/results.py +++ b/tests/test_sourcepoint_latest/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_sourcepoint_restart/results.py b/tests/test_sourcepoint_restart/results.py index 9a1f0fcd4..88789385b 100644 --- a/tests/test_sourcepoint_restart/results.py +++ b/tests/test_sourcepoint_restart/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_statepoint_batch/results.py b/tests/test_statepoint_batch/results.py index a43950a29..e9237ee87 100644 --- a/tests/test_statepoint_batch/results.py +++ b/tests/test_statepoint_batch/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_statepoint_interval/results.py b/tests/test_statepoint_interval/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_statepoint_interval/results.py +++ b/tests/test_statepoint_interval/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_statepoint_restart/results.py b/tests/test_statepoint_restart/results.py index 394c8fc4b..1341d6754 100644 --- a/tests/test_statepoint_restart/results.py +++ b/tests/test_statepoint_restart/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_statepoint_sourcesep/results.py b/tests/test_statepoint_sourcesep/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_statepoint_sourcesep/results.py +++ b/tests/test_statepoint_sourcesep/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_survival_biasing/results.py b/tests/test_survival_biasing/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_survival_biasing/results.py +++ b/tests/test_survival_biasing/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_tally_assumesep/results.py b/tests/test_tally_assumesep/results.py index c775a8007..f04df3a01 100644 --- a/tests/test_tally_assumesep/results.py +++ b/tests/test_tally_assumesep/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_tally_nuclides/results.py b/tests/test_tally_nuclides/results.py index 4d6d2f05e..edbebc126 100644 --- a/tests/test_tally_nuclides/results.py +++ b/tests/test_tally_nuclides/results.py @@ -3,9 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_trace/results.py b/tests/test_trace/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_trace/results.py +++ b/tests/test_trace/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_track_output/results.py b/tests/test_track_output/results.py index f79b47eff..959dd40d5 100644 --- a/tests/test_track_output/results.py +++ b/tests/test_track_output/results.py @@ -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.' diff --git a/tests/test_translation/results.py b/tests/test_translation/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_translation/results.py +++ b/tests/test_translation/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_trigger_batch_interval/results.py b/tests/test_trigger_batch_interval/results.py index 922fd4f74..8710a976c 100644 --- a/tests/test_trigger_batch_interval/results.py +++ b/tests/test_trigger_batch_interval/results.py @@ -3,8 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_trigger_no_batch_interval/results.py b/tests/test_trigger_no_batch_interval/results.py index 3665b48a9..993296a57 100644 --- a/tests/test_trigger_no_batch_interval/results.py +++ b/tests/test_trigger_no_batch_interval/results.py @@ -3,8 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_trigger_no_status/results.py b/tests/test_trigger_no_status/results.py index 7754ec7e5..c371ffb97 100644 --- a/tests/test_trigger_no_status/results.py +++ b/tests/test_trigger_no_status/results.py @@ -3,8 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_trigger_tallies/results.py b/tests/test_trigger_tallies/results.py index 88aa4146f..1dc194079 100644 --- a/tests/test_trigger_tallies/results.py +++ b/tests/test_trigger_tallies/results.py @@ -3,8 +3,7 @@ import sys import numpy as np -sys.path.insert(0, '../../src/utils') - +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_uniform_fs/results.py b/tests/test_uniform_fs/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_uniform_fs/results.py +++ b/tests/test_uniform_fs/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_union_energy_grids/results.py b/tests/test_union_energy_grids/results.py index b616e2874..234e69f33 100644 --- a/tests/test_union_energy_grids/results.py +++ b/tests/test_union_energy_grids/results.py @@ -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 diff --git a/tests/test_universe/results.py b/tests/test_universe/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_universe/results.py +++ b/tests/test_universe/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file diff --git a/tests/test_void/results.py b/tests/test_void/results.py index d7aba2bcf..fc1b491c6 100644 --- a/tests/test_void/results.py +++ b/tests/test_void/results.py @@ -2,9 +2,7 @@ import sys -sys.path.insert(0, '../../src/utils') - -# import statepoint +sys.path.insert(0, '../..') from openmc.statepoint import StatePoint # read in statepoint file