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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to