discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] repeat variable in a file source


From: Linda20071
Subject: [Discuss-gnuradio] repeat variable in a file source
Date: Fri, 27 Jul 2018 11:47:27 -0400

We use "repeat" variable in a file source to show whether or not we want to repeatedly play the file. In my module, I generated a limited length of random data, and I use "bool repeat" to show whether or not I want the limited length of data to be repeatedly played. However, when I run the module, I got a type error message that complains the bool type of this "repeat" variable in the make function as shown below:

  File "/usr/local/lib/python2.7/dist-packages/mysource/mysource_swig.py", line 154, in make
    return _mysource_swig.mysource_make(len, repeat, upsampling_rate)
TypeError: in method 'mysource_make', argument 2 of type 'bool'

However, as I understand, the "repeat" needs to be declared as "bool". Is there a fix for this problem?





reply via email to

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