discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problems in making an array in python


From: George Nychis
Subject: Re: [Discuss-gnuradio] Problems in making an array in python
Date: Wed, 07 May 2008 20:03:17 -0400
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Read the error, it's quite descriptive.

Python interprets blocks by their indentation, instead of C or C++ which interpret blocks with braces {}.

Your indentation doesn't match.


CHIN-YA HUANG wrote:
Dear all,

I made some modification for gnuradio-examples/python/ofdm

I got some problem when correctly the code after the meeting.
I try to construct an array for arity for some future proposes.
If there is 6 channels, and we want to put 16 qam to each, my idea is 
arity[0]=arity[1]=...=arity[15]=mods[qam16]=16.

However, No matter I use

arity = [16]*6,

arity =[mods[self._modulation]]*6, or  arity =mods[self._modulation]*6

arity =mods[self._modulation]*a  where  a = self._occupied_tones or arity 
=mods[[self._modulation]]*a  where  a = self._occupied_tones,

arity = mods[self._modulation]* self._occupied_tones or arity = [mods[self._modulation]]* self._occupied_tones
where self._occupoed_tones = 6, and self._modulation='qam16'

all the error are the same at *6, *a, or * self_occupied_tones  parts.

The error message is IndentationErrorL
unindent doesn't match any outer outer indentation level.

Does any one have any ideas?

Thanks

Chin-Ya


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio





reply via email to

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