Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: shapelet
-
Labels:
-
Story Points:1
-
Sprint:Science Pipelines DM-W15-1
-
Team:Data Release Production
Description
When building the master on pugsley.ncsa.illinois.edu, shapelet builds successfully, but two tests fail:
pugsley:lsstsw mjuric$ cat build/shapelet/tests/.tests/*.failed
|
tests/testMatrixBuilder.py
|
|
.F.....
|
======================================================================
|
FAIL: testConvolvedCompoundMatrixBuilder (__main__.MatrixBuilderTestCase)
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "tests/testMatrixBuilder.py", line 310, in testConvolvedCompoundMatrixBuilder
|
self.assertClose(numpy.dot(matrix1D, coefficients), checkVector, rtol=1E-14)
|
File "/Users/mjuric/test/lsstsw/stack/DarwinX86/utils/9.2+8/python/lsst/utils/tests.py", line 328, in assertClose
|
testCase.assertFalse(failed, msg="\n".join(msg))
|
AssertionError: 1/50 elements differ with rtol=1e-14, atol=2.22044604925e-16
|
0.175869366369 != 0.175869366369 (diff=1.99840144433e-15/0.175869366369=1.13629876856e-14)
|
|
----------------------------------------------------------------------
|
Ran 7 tests in 0.323s
|
|
FAILED (failures=1)
|
tests/testMultiShapelet.py
|
|
...F...
|
======================================================================
|
FAIL: testConvolveGaussians (__main__.MultiShapeletTestCase)
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "tests/testMultiShapelet.py", line 88, in testConvolveGaussians
|
self.compareMultiShapeletFunctions(msf3a, msf3b)
|
File "/Users/mjuric/test/lsstsw/build/shapelet/python/lsst/shapelet/tests.py", line 107, in compareMultiShapeletFunctions
|
self.compareShapeletFunctions(sa, sb, rtolEllipse=rtolEllipse, rtolCoeff=rtolCoeff)
|
File "/Users/mjuric/test/lsstsw/build/shapelet/python/lsst/shapelet/tests.py", line 86, in compareShapeletFunctions
|
rtol=rtolEllipse)
|
File "/Users/mjuric/test/lsstsw/stack/DarwinX86/utils/9.2+8/python/lsst/utils/tests.py", line 328, in assertClose
|
testCase.assertFalse(failed, msg="\n".join(msg))
|
AssertionError: 1/5 elements differ with rtol=1e-14, atol=2.22044604925e-16
|
2.44929359829e-16 != 1.13310777953e-15 (diff=8.881784197e-16/1.13310777953e-15=0.783842839795)
|
|
----------------------------------------------------------------------
|
Ran 7 tests in 0.131s
|
|
FAILED (failures=1)
|
===============
More info on pugsley.ncsa.illinois.edu:
pugsley:lsstsw mjuric$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.5
BuildVersion: 13F34
pugsley:lsstsw mjuric$ clang -v
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
============
The files are in /Users/mjuric/test/lsstsw/build/shapelet/.
Attachments
Issue Links
- relates to
-
DM-1339 Unit tests failing
- Done
Looks like you're just getting a different set of random numbers than I was on my platform in these tests, and the tolerances I set aren't good enough for yours. Fix should just be to set rtol=1E-13, atol=1E-13 for both of these tests.