|
From: | John Medrano |
Subject: | Re: [Discuss-gnuradio] qa test failed! |
Date: | Mon, 28 May 2018 22:40:30 -0600 |
I created a module named detector0 with one input argument: int len. In the python qa file, I set the len to 20. However, when I issued the command: ctest -V -R detector0, I got the following error:2: Test timeout computed to be: 9.99988e+062: E2: ============================================================ ===== 2: ERROR: test_001_detector0 (__main__.qa_detector0)2: ------------------------------------------------------------ ---------- 2: Traceback (most recent call last):2: File "qa_detector0.py", line 42, in test_001_detector02: self.tb.connect(detec. dst)2: AttributeError: 'detector0_sptr' object has no attribute 'dst'My related python codes are as follows:src = "">data)d_len = 20detec = detectors.detector0(d_len)dst = blocks.vector_sink_f()self.tb.connect(src, detec)self.tb.connect(detec. dst)# set up fgself.tb.run ()# check dataresult_data = dst.data()self.assertFloatTuplesAlmostEqual( expected_result, result_data, 6) I couldn't see any problems in the connection: self.tb.connect(detec. dst).Any advice on solving this AttributeError?
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |