when I import numpy to my python script, the script is executed twice. Can someone tell me how I can stop this, since everything in my script takes twice as long?
Here's an example:
#!/usr/bin/python2
from numpy import *
print 'test_start'
lines = open('test.file', 'r').readlines()
what=int(lines[0])+2
nsteps = len(lines)/what
atom_list=[]
for i in range(0,nsteps*what):
atom_list.append(lines[i].split())
del atom_list[:]
print 'test_end'
And the output is:
test_start
test_end
test_start
test_end
So, is my script first executed with normal python and then with numpy again? Maybe I should say that I have not worked with numpy yet and just wanted to start and test it.
Cheers