Address @paulromano comments on #469

This commit is contained in:
Sterling Harper 2015-10-03 11:28:36 -04:00
parent 6b92694578
commit 03a8fb64e6
94 changed files with 47 additions and 140 deletions

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import CMFDTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import CMFDTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -17,10 +16,10 @@ class FilterCellTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterCellTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterCellTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -17,10 +16,10 @@ class FilterCellbornTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterCellbornTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterCellbornTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -5,7 +5,6 @@ import hashlib
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import *

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -18,10 +17,10 @@ class FilterEnergyTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterEnergyTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterEnergyTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -18,10 +17,10 @@ class FilterEnergyoutTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterEnergyoutTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterEnergyoutTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -22,10 +21,10 @@ class FilterGroupTransferTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterGroupTransferTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterGroupTransferTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -17,10 +16,10 @@ class FilterMaterialTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterMaterialTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterMaterialTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -17,10 +16,10 @@ class FilterUniverseTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(tally)
PyAPITestHarness._build_inputs(self)
super(FilterUniverseTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(FilterUniverseTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -5,7 +5,6 @@ import os
import sys
import numpy as np
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import ParticleRestartTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import ParticleRestartTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import PlotTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import PlotTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import PlotTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import PlotTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -23,10 +22,10 @@ class ScoreMTTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreMTTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreMTTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreAbsorptionTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreAbsorptionTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreAbsorptionTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import HashedTestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -19,10 +18,10 @@ class ScoreEventsTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreEventsTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreEventsTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreFissionTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreFissionTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreFissionTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreFluxTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreFluxTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreFluxTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -21,10 +20,10 @@ class ScoreFluxYnTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreFluxYnTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreFluxYnTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreKappaFissionTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreKappaFissionTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreKappaFissionTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreNuFissionTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreNuFissionTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreNuFissionTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -25,7 +24,7 @@ class ScoreNuScatterTestHarness(PyAPITestHarness):
self._input_set.export()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreNuScatterTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -29,7 +28,7 @@ class ScoreNuScatterNTestHarness(PyAPITestHarness):
self._input_set.export()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreNuScatterNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -33,7 +32,7 @@ class ScoreNuScatterPNTestHarness(PyAPITestHarness):
self._input_set.export()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreNuScatterPNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -29,7 +28,7 @@ class ScoreNuScatterYNTestHarness(PyAPITestHarness):
self._input_set.export()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreNuScatterYNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreScatterTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreScatterTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreScatterTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -21,10 +20,10 @@ class ScoreScatterNTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
self._input_set.tallies.add_tally(t)
PyAPITestHarness._build_inputs(self)
super(ScoreScatterNTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreScatterNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -26,10 +25,10 @@ class ScoreScatterPNTestHarness(PyAPITestHarness):
self._input_set.tallies.add_tally(t1)
self._input_set.tallies.add_tally(t2)
PyAPITestHarness._build_inputs(self)
super(ScoreScatterPNTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreScatterPNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -22,10 +21,10 @@ class ScoreScatterYNTestHarness(PyAPITestHarness):
self._input_set.tallies.add_tally(t1)
self._input_set.tallies.add_tally(t2)
PyAPITestHarness._build_inputs(self)
super(ScoreScatterYNTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreScatterYNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -20,10 +19,10 @@ class ScoreTotalTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreTotalTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreTotalTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness, PyAPITestHarness
import openmc
@ -23,10 +22,10 @@ class ScoreTotalYNTestHarness(PyAPITestHarness):
self._input_set.tallies = openmc.TalliesFile()
[self._input_set.tallies.add_tally(t) for t in tallies]
PyAPITestHarness._build_inputs(self)
super(ScoreTotalYNTestHarness, self)._build_inputs()
def _cleanup(self):
PyAPITestHarness._cleanup(self)
super(ScoreTotalYNTestHarness, self)._cleanup()
f = os.path.join(os.getcwd(), 'tallies.xml')
if os.path.exists(f): os.remove(f)

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import *

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness
from openmc.statepoint import StatePoint

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness
from openmc.statepoint import StatePoint

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness
from openmc.statepoint import StatePoint
from openmc.executor import Executor

View file

@ -4,7 +4,6 @@ import glob
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -5,7 +5,6 @@ import os
import shutil
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -3,7 +3,6 @@
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from testing_harness import TestHarness

View file

@ -11,8 +11,8 @@ import sys
import numpy as np
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
from input_set import InputSet
sys.path.insert(0, '../..')
from openmc.statepoint import StatePoint
from openmc.executor import Executor
import openmc.particle_restart as pr