discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] qa test failed!


From: Linda20071
Subject: [Discuss-gnuradio] qa test failed!
Date: Mon, 28 May 2018 17:55:24 -0400

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+06
2: E
2: ================================================================= 
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_detector0
2:     self.tb.connect(detec. dst)
2: AttributeError: 'detector0_sptr' object has no attribute 'dst'

My related python codes are as follows:

src = "">
        d_len = 20
detec = detectors.detector0(d_len)
dst = blocks.vector_sink_f()
self.tb.connect(src, detec)
self.tb.connect(detec. dst)
        # set up fg
        self.tb.run ()
        # check data
result_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?

reply via email to

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