problem with array and for loop
Fabian Braennstroem
f.braennstroem at gmx.de
Thu May 11 01:38:57 EDT 2006
Hi,
I have a 'simple' problem with a multidimension array in a
for loop. It looks like this:
wert= zeros([127,2])
wert1= zeros(127)
m=1
l=1
for pos in [pos1,pos2,pos3]:
for i in range(1,125):
wert[l,m]= probe1.GetOutput().GetPointData().GetScalars().GetTuple1(i);
# wert1[i]= probe1.GetOutput().GetPointData().GetScalars().GetTuple1(i);
m=m+1;
l=l+1;
It works for the 1D 'wert1'. Does anyone have an idea?
Greetings!
Fabian
More information about the Python-list
mailing list