Skip to content
Snippets Groups Projects
Commit a36e2eb7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

auto_slicing tolerance -> 5e-12

parent d6215efe
No related branches found
No related tags found
1 merge request!1228Repair slicing and ff computation for HorizontalCylinder (#386)
......@@ -45,14 +45,14 @@ class SlicedSpheresTest(unittest.TestCase):
particle = ba.Particle(matParticle, ff)
diff = infrastruct.diff_MiniGISAS(get_sample(particle, False),
get_sample(particle, True))
self.assertLess(diff, 1e-9)
self.assertLess(diff, 5e-12)
def testSlicingPlainFF(self):
self.runPlainFF(ba.Cone(8., 9., 80*ba.deg))
self.runPlainFF(ba.Cylinder(3., 9.))
self.runPlainFF(ba.EllipsoidalCylinder(3., 4., 9.))
# self.runPlainFF(ba.HemiEllipsoid(7., 8., 9.)) # yet unsupported
self.runPlainFF(ba.HorizontalCylinder(5., 19.)) # TODO restore tol=1e-13
self.runPlainFF(ba.HorizontalCylinder(5., 19.))
self.runPlainFF(ba.HorizontalCylinder(5., 19., -4., 4.))
self.runPlainFF(ba.HorizontalCylinder(6., 19., -3., 3.))
self.runPlainFF(ba.Sphere(5.))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment