Just a quick question regarding converting loop commands in IDL to python.
I have the following loop structure in IDL syntax:
for ... do begin
for ... do begin
if ...
...
endif else begin
....
endelse
endfor
endfor
Now, I would say that is roughly translates to
for ... :
for ... :
if ...
...
end if else:
....
endelse
endfor
endfor
In python.
However, I would say the endelse and endfor commands are redundant? But what should I replace them with?