[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Problems in making an array in python
From: |
CHIN-YA HUANG |
Subject: |
[Discuss-gnuradio] Problems in making an array in python |
Date: |
Wed, 07 May 2008 18:57:54 -0500 |
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] Problems in making an array in python,
CHIN-YA HUANG <=