On 28.05.2014 11:13, Martin Braun wrote:
On 28.05.2014 09:45, Karan Talasila wrote:
Hi
we have written a c++ block using out of tree modules which uses a
sync block that outputs same no of items as input items given. we have
written a python test file where the inputs and outputs are complex
floats. The test code is running well until 4096 items. But when the
output items size is greater than or equal to 8192, ctest shows an
assertion error which says
-10+5j !=10+5j beyond 7 places.
This looks like floating point quantization errors. Show us your QA, and
make sure you're using the assertFloatTuplesAlmostEqual (not sure if
that's the right name) call.
Ah, as Marcus M points out, this is a signature error, rather than
quantization :)
Still, this all points to your code being incorrect, or your QA making
invalid assumptions.
Maybe you should be tracking state in your block (these number indicate
that more than 1 work function call seem unveil your bug).
M
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio