I currently have the following line of code for an input:
rawdata = raw_input('please copy and paste your charge discharge data')
When using Enthoughts GUI with Ipython and I run my script I can copy and paste preformatted text fine which pulls with it the \t and \n. When trying to paste data into a terminal style version of the script it however tries to process each line of data rather than accepting it as bulk. Any help?
More relevant lines of code:
rawed = raw_input('Please append charge data here: ')
time, charge = grab_and_sort(rawed)
def grab_and_sort(rawdata):
rawdata = rawdata.splitlines()
ex = []
why = []
for x in range(2 , len(rawdata)):
numbers = rawdata[x].split('\t')
ex.append(numbers[0])
why.append(numbers[1])
ex = array(ex)
why = array(why)
return (ex, why)