from sa_data_functions import * while 1 : f = raw_input('Enter file name: ') try: fo = open(f, 'r') fo.close() except : print("File does not exist.") scales = [1.0e-06, 1.0] # This will change the horizontal scale to MHz. [h, v], error = ReadDataFromFile(f, scales) if len(error) : print error sys.exit() v = RCFilterFFT(v, len(v)/20) # 20 the a minimum characteristic parameter recommended. plot(h, v) show()