[cctbxbb] [git/cctbx] master: use larger tolerance (0b81ca799)

Graeme.Winter at diamond.ac.uk Graeme.Winter at diamond.ac.uk
Sun Feb 11 22:52:10 PST 2018


Pavel,

This commit did not fix test on OS X High Sierra

libtbx.python "/Users/graeme/svn/cctbx/modules/cctbx_project/cctbx/maptbx/tst_interpolation.py" [FAIL] 1.4s
  Time:  1.39
  Return code: 1
  OKs: 0
  Standard error:
    Traceback (most recent call last):
      File "/Users/graeme/svn/cctbx/modules/cctbx_project/cctbx/maptbx/tst_interpolation.py", line 128, in <module>
        exercise(f = f, gx = gx, gy = gy, gz = gz, function_type=function_type)
      File "/Users/graeme/svn/cctbx/modules/cctbx_project/cctbx/maptbx/tst_interpolation.py", line 99, in exercise
        assert approx_equal(it, 0.0, 1.e-4)
    AssertionError

cheers Graeme

On 11 Feb 2018, at 00:14, CCTBX commit <diamondlightsource.jenkins at GMAIL.COM<mailto:diamondlightsource.jenkins at GMAIL.COM>> wrote:

Repository : ssh://g18-sc-serv-03.diamond.ac.uk/cctbx
On branch  : master

________________________________


commit 0b81ca7992f9cf7730eb007aff6e8c30bd2ba71b
Author: Pavel <pafonine at lbl.gov<mailto:pafonine at lbl.gov>>
Date:   Sat Feb 10 16:14:51 2018 -0800

    use larger tolerance


________________________________


0b81ca7992f9cf7730eb007aff6e8c30bd2ba71b
cctbx/maptbx/tst_interpolation.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cctbx/maptbx/tst_interpolation.py b/cctbx/maptbx/tst_interpolation.py
index 918ba68fd..90dec8a46 100644
--- a/cctbx/maptbx/tst_interpolation.py
+++ b/cctbx/maptbx/tst_interpolation.py
@@ -96,15 +96,15 @@ def exercise(f,gx,gy,gz,function_type, eps = 1.e-6):
     if(function_type=="L"):
       cntr+=1
       for it in [tl,gxl,gyl,gzl, tq,gxq,gyq,gzq, tt,gxt,gyt,gzt]:
-        assert approx_equal(it, 0.0)
+        assert approx_equal(it, 0.0, 1.e-4)
     if(function_type=="Q"):
       cntr+=1
       for it in [tq,gxq,gyq,gzq, tt,gxt,gyt,gzt]:
-        assert approx_equal(it, 0.0)
+        assert approx_equal(it, 0.0, 1.e-4)
     if(function_type=="C"):
       cntr+=1
       for it in [tt,gxt,gyt,gzt]:
-        assert approx_equal(it, 0.0)
+        assert approx_equal(it, 0.0, 1.e-4)
       if(abs(tl)>eps and abs(tq)>eps): assert tl >=tq
     if(function_type=="F"):
       cntr+=1


-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom




More information about the cctbxbb mailing list