Re: [Tutor] Fitting data to error function

2015-03-15 Thread Danny Yoo
> What does fft expect to receive as an argument? We can read the following: > > > http://docs.scipy.org/doc/scipy/reference/generated/scipy.fftpack.fft.html#scipy.fftpack.fft > > Since fft is erroring out: there's only one possibility: E_(x) is not > providing a value that's appropriate to f

Re: [Tutor] Fitting data to error function

2015-03-15 Thread Danny Yoo
> Thanks for the help! As you mentioned, using scipy.special.erfc was a much > better idea. Below is a copy of my program and the stack trace, showing a > new error. It seems that the first auto correlation works, however the > second fails. At this point, the program is large enough that we nee

Re: [Tutor] print method in Python2.7 problem

2015-03-15 Thread Alan Gauld
To be fair to Doug his mails aren't cp,ing through to the list fully. I susp3ect because he is using an Outlook message format with lots of fancy formatting and a background all of which are being sent as attachments... Here is his text (with a lot of extraneous whitespace removed): -

Re: [Tutor] print method in Python2.7 problem

2015-03-15 Thread Mark Lawrence
On 15/03/2015 17:40, Mark Lawrence wrote: On 15/03/2015 16:46, Doug Basberg wrote: Nothing because it was in a completely unnecessary attachment (some people won't even receive it), so here's the code. Stat = {'Vbatt': 51.24, 'Ichrg': 6.75} print ' SOLAR PANEL VOLTAGE' print('DSB "HI;" %

Re: [Tutor] print method in Python2.7 problem

2015-03-15 Thread Steven D'Aprano
On Sun, Mar 15, 2015 at 12:46:04PM -0400, Doug Basberg wrote: > Stat = {'Vbatt': 51.24, 'Ichrg': 6.75} > print ' SOLAR PANEL VOLTAGE' > print('DSB "HI;" %s') % (str(Stat['Vbatt'])) > print(' %s') % > (str(Stat['Vbatt'])) Yes? What about it? Do you have a question or do you expect us to re

Re: [Tutor] print method in Python2.7 problem

2015-03-15 Thread Mark Lawrence
On 15/03/2015 16:46, Doug Basberg wrote: Nothing because it was in a completely unnecessary attachment (some people won't even receive it), so here's the code. Stat = {'Vbatt': 51.24, 'Ichrg': 6.75} print ' SOLAR PANEL VOLTAGE' print('DSB "HI;" %s') % (str(Stat['Vbatt'])) print(' %s')

Re: [Tutor] Ipython Queries

2015-03-15 Thread Santosh Kumar
Thank you All. I forgot to update you guys , i use ubuntu 14.10 . I believe/was under assumption that we cannot used ipython both for python 2.x and python 3.x. So ipython is for python 2.x and ipython3 is for python 3.x Thanks, santosh On Sun, Mar 15, 2015 at 3:47 AM, Oscar Benjamin wrote: > O

[Tutor] print method in Python2.7 problem

2015-03-15 Thread Doug Basberg
Stat = {'Vbatt': 51.24, 'Ichrg': 6.75} print ' SOLAR PANEL VOLTAGE' print('DSB "HI;" %s') % (str(Stat['Vbatt'])) print(' %s') % (str(Stat['Vbatt'])) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://m

Re: [Tutor] Fitting data to error function

2015-03-15 Thread Colin Ross
Hi Danny, Thanks for the help! As you mentioned, using scipy.special.erfc was a much better idea. Below is a copy of my program and the stack trace, showing a new error. It seems that the first auto correlation works, however the second fails. ### # Autocorrelation p