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
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio