alright, so i'm trying to import text from a file into an array so that I have the ability to edit data, find certain functions, etc.
This is currently what my program looks like....(I haven't gotten very far)
from scipy import *
from numpy import *
def Radiograph_data:
try:
file('c:/users/ross/desktop/radiograph_data.txt') #checks desktop for file
except IOerror, e:
e = urlopen('http://www.u.arizona.edu/~erdmann/mse350/radiograph_data.txt') #downloads file from internet
data = numpy.loadtxt(e, dtype = float32, comments = '!') #places text in array without lines starting with '!'
Thanks,
Ross