[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] C++ Vector equivalent in Python using swig
From: |
Tom Rondeau |
Subject: |
Re: [Discuss-gnuradio] C++ Vector equivalent in Python using swig |
Date: |
Wed, 14 Apr 2010 09:56:48 -0400 |
On Wed, Apr 14, 2010 at 2:15 AM, Mir M. Ali <address@hidden> 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