Skip to content

Commit

Permalink
refs #8951. Fix RHEL6 issue.
Browse files Browse the repository at this point in the history
Looks like this is due to lack of language support against 2.7.
  • Loading branch information
OwenArnold authored and RussellTaylor committed Feb 25, 2014
1 parent e4a1520 commit b4619be
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -104,8 +104,8 @@ def test_stitching_determines_params(self):
step_size = out_x_values[1] - out_x_values[0]

self.assertEqual(x_min, -1)
self.assertAlmostEqual(x_max-demanded_step_size, 1.4, delta=1e-6)
self.assertAlmostEqual(step_size, demanded_step_size, delta=1e-6)
self.assertAlmostEqual(x_max-demanded_step_size, 1.4, places=6)
self.assertAlmostEqual(step_size, demanded_step_size, places=6)

DeleteWorkspace(stitched)
DeleteWorkspace(ws1)
Expand All @@ -130,8 +130,8 @@ def test_stitching_determines_start_and_end_overlap(self):
print start_overlap_determined, end_overlap_determined


self.assertAlmostEqual(start_overlap_determined, -0.4, delta=1e-9)
self.assertAlmostEqual(end_overlap_determined, 0.2, delta=1e-9)
self.assertAlmostEqual(start_overlap_determined, -0.4, places=9)
self.assertAlmostEqual(end_overlap_determined, 0.2, places=9)

def test_stitching_scale_right(self):
stitched = Stitch1D(LHSWorkspace=self.b, RHSWorkspace=self.a, StartOverlap=-0.4, EndOverlap=0.4, Params='0.2')
Expand Down

0 comments on commit b4619be

Please sign in to comment.