Friday, July 27, 2018

[Discuss-gnuradio] repeat variable in a file source

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?




No comments:

Post a Comment