problem with array and for loop

  • Thread starter Fabian Braennstroem
  • Start date
F

Fabian Braennstroem

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= 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,240
Latest member
เพิ่มไลค์|LikePro

Latest Threads

Top