Skip to content

Commit

Permalink
Add LoadVesuvio test for foil out par file
Browse files Browse the repository at this point in the history
Refs #11750
  • Loading branch information
DanNixon committed May 13, 2015
1 parent 9e993be commit 124bc3f
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -102,7 +102,7 @@ def test_foilin_mode_gives_expected_numbers(self):
self.assertAlmostEqual(37594.0, evs_raw.readY(0)[1], places=DIFF_PLACES)
self.assertAlmostEqual(193.89172236070317, evs_raw.readE(0)[1], places=DIFF_PLACES)

def test_using_ip_file_adjusts_instrument_and_attaches_parameters(self):
def test_using_ip_file_adjusts_instrument_and_attaches_parameters_in_difference_mode(self):
self._run_load("14188", "3", "SingleDifference","IP0005.dat")

# Check some data
Expand All @@ -112,6 +112,16 @@ def test_using_ip_file_adjusts_instrument_and_attaches_parameters(self):
self.assertEqual(1, len(param))
self.assertAlmostEqual(-0.4157, param[0],places=4)

def test_using_ip_file_adjusts_instrument_and_attaches_parameters_in_foil_mode(self):
self._run_load("14188", "3", "FoilOut","IP0005.dat")

# Check some data
evs_raw = mtd[self.ws_name]
det0 = evs_raw.getDetector(0)
param = det0.getNumberParameter("t0")
self.assertEqual(1, len(param))
self.assertAlmostEqual(-0.4157, param[0],places=4)

def test_sumspectra_set_to_true_gives_single_spectra_summed_over_all_inputs(self):
self._run_load("14188", "135-142", "SingleDifference","IP0005.dat",sum=True)
evs_raw = mtd[self.ws_name]
Expand Down

0 comments on commit 124bc3f

Please sign in to comment.