discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Problem with OOT Interpolator Python module


From: Cinaed Simson
Subject: Re: Problem with OOT Interpolator Python module
Date: Sat, 23 Jan 2021 12:59:11 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

Hi George - I'm presuming the enclosed example.py script is what you're trying calculate - and that the input data is complex. 

I invented my own data.

If true, it should be easy to adapt it to your problem by combining the 2 loops for any value of n.

-- Cinaed


On 1/22/21 10:49 AM, George Edwards wrote:
Hello,
I am working with the OOT Interpolator template and I set the interpolation factor to 2. In the QA file I input 5-complex samples  and based on my simple code below in the work() method, I expect the QA test to return 1+j1, 10-times (5x2). The QA returns ((1+1j), (1+1j), 0j,  0j,  0j,  0j,  0j,  0j,  (1+1j) ,  (1+1j)). I have tried a lot of different coding permutations and this is the closest I come to a solution, but it is wrong!!!  Any help is greatly appreciated!

    def work(selfinput_itemsoutput_items):

        in0 = input_items[0]

        out = output_items[0]

        for ii in range(0,len(in0)):

            for k in range(0,2):

                out[k] = 1.0+1.0*1j

       

        return len(output_items[0])

 
Thanks,
George 


Attachment: example.py
Description: Text Data


reply via email to

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