From 3b2bc49cf5cc69a3bda2019898c82aa309926e1d Mon Sep 17 00:00:00 2001 From: Ross Whitfield <whitfieldre@ornl.gov> Date: Mon, 31 Oct 2016 11:03:08 -0400 Subject: [PATCH] Fix unittests for GSL2 --- .../python/plugins/algorithms/NMoldyn4InterpolationTest.py | 4 ++-- scripts/test/CrystalFieldTest.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Framework/PythonInterface/test/python/plugins/algorithms/NMoldyn4InterpolationTest.py b/Framework/PythonInterface/test/python/plugins/algorithms/NMoldyn4InterpolationTest.py index b82e1cb43ea..777296f2a74 100644 --- a/Framework/PythonInterface/test/python/plugins/algorithms/NMoldyn4InterpolationTest.py +++ b/Framework/PythonInterface/test/python/plugins/algorithms/NMoldyn4InterpolationTest.py @@ -39,8 +39,8 @@ class NMoldyn4InterpolationTest(unittest.TestCase): self.assertNotEqual(len(inter_X), sim.getAxis(0).length()) self.assertEqual(inter_Q_length, osiris_Q_length) self.assertNotEqual(inter_Q_length, sim.getNumberHistograms()) - self.assertAlmostEqual(sample_Y_data[0], 0.020095312677012457, 12) - self.assertAlmostEqual(sample_Y_data[30], 1.7310334927635238, 12) + self.assertAlmostEqual(sample_Y_data[0], 0.020095312, 9) + self.assertAlmostEqual(sample_Y_data[30], 1.73103349, 7) def test_X_min_too_big(self): x_data = np.arange(-0.5, 2., 0.05) diff --git a/scripts/test/CrystalFieldTest.py b/scripts/test/CrystalFieldTest.py index 1184600b367..ca09e18ec8f 100644 --- a/scripts/test/CrystalFieldTest.py +++ b/scripts/test/CrystalFieldTest.py @@ -1031,7 +1031,7 @@ class CrystalFieldFitTest(unittest.TestCase): self.assertAlmostEqual(cf.peaks.param[0]['FWHM'], 1.0112, 4) self.assertAlmostEqual(cf.peaks.param[1]['FWHM'], 1.5811, 4) - self.assertAlmostEqual(cf.peaks.param[2]['FWHM'], 1.7947, 4) + self.assertAlmostEqual(cf.peaks.param[2]['FWHM'], 1.794, 2) def test_resolution_single_spectrum_fit_variation(self): from CrystalField import CrystalField, CrystalFieldFit -- GitLab