discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] make check fails: assertComplexTuplesAlmostEqual


From: Shalabh Jain
Subject: [Discuss-gnuradio] make check fails: assertComplexTuplesAlmostEqual
Date: Mon, 2 Jan 2012 19:34:37 -0500

Hello,

I am having a weird problem during the gnuradio installation. It seems like an issue with treatment of floating point values by the machine. What concerns me is the variability across different runs..

During the make check step, one of the tests throws an error asserting that the complex tuples are not equal. I run the same step 10 times continuously, it passes 5 or 6 times. So my installation is probably ok. Its something to do with the way the machine is handling the storage of decimal values. But I just can't figure it out. 

Does anybody know of any option I can configure to lock the machine behavior so that the way floats/doubles are stored is consistent. 

Thanks
Shalabh


FAIL: test01 (__main__.test_fll_band_edge_cc)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./qa_fll_band_edge.py", line 80, in test01
    self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 4)
  File "/opt/gnuradio_src/gnuradio-core/src/python/gnuradio/gr_unittest.py", line 71, in assertComplexTuplesAlmostEqual
    self.assertComplexAlmostEqual (a[i], b[i], places, msg)
  File "/opt/gnuradio_src/gnuradio-core/src/python/gnuradio/gr_unittest.py", line 44, in assertComplexAlmostEqual
    (msg or '%s != %s within %s places' % (`first`, `second`, `places` ))
AssertionError: -0.20000000000000001 != -0.19991560280323029 within 4 places


reply via email to

[Prev in Thread] Current Thread [Next in Thread]