On Wed, Apr 14, 2010 at 2:15 AM, Mir M. Ali <[email protected]> wrote: > Hi, > I have a Gnuradio block that i built in C++ that has a vector passed to it. > When I want to import the python equivalent of that block in python how will > i pass a vector to it. I thought lists were an equivalent but it doesn't > work. > > Thanks > Mir
Python tuples and lists can be passed as std::vector<X> to the C++ block. You can look in gr_ofdm_mapper_bcv to see one example of how we did this. More complicated, look at gr_ofdm_insert_preamble where we pass in a vector of vectors. It's possibly a problem with your swig interface file. Tom _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
