Re: [Tutor] strange errors

2014-02-04 Thread Peter Otten
Gabriele Brambilla wrote: > ok. > the problem is that my "errors" are not always the same and sometimes they > are only differences in the results displayed (with the same starting data > and no random variables used between). Sometimes randomness lurks where you don't expect it. Are there any di

Re: [Tutor] strange errors

2014-02-04 Thread Gabriele Brambilla
ok. the problem is that my "errors" are not always the same and sometimes they are only differences in the results displayed (with the same starting data and no random variables used between). so it's difficult for me to understand where the error is (and to give you a piece of code that can run).

Re: [Tutor] strange errors

2014-02-03 Thread Jerry Hill
On Mon, Feb 3, 2014 at 2:17 PM, Gabriele Brambilla wrote: > No, i'm not using lowlevel stuff...which part of the script do you want to > see? Since you asked, what we'd really like to see is a Short, Self Contained, Compilable Example (see http://sscce.org/). That is, an example that is short e

Re: [Tutor] strange errors

2014-02-03 Thread Peter Otten
Gabriele Brambilla wrote: > No, i'm not using lowlevel stuff...which part of the script do you want > to see? The part that remains when you throw out everything that has no effect on the "strange errors" ;) For example if you have a routine def load_data(filename): ... # do complex proc

Re: [Tutor] strange errors

2014-02-03 Thread Gabriele Brambilla
No, i'm not using lowlevel stuff...which part of the script do you want to see? thanks Gabriele 2014-02-03 Peter Otten <__pete...@web.de>: > Gabriele Brambilla wrote: > > > an example of errors that I obtain is: I build a matrix (SciPy array) > > using the same data. > > I search for the maxi

Re: [Tutor] strange errors

2014-02-03 Thread Peter Otten
Gabriele Brambilla wrote: > an example of errors that I obtain is: I build a matrix (SciPy array) > using the same data. > I search for the maximum and the minimum with the given function and I > insert the two values in a tuple that I print. > sometimes it print to me this: (0.0, 3.19266766501244

Re: [Tutor] strange errors

2014-02-03 Thread ALAN GAULD
>an example of errors that I obtain is: I build a matrix (SciPy array) using >the same data. >I search for the maximum and the minimum with the given function and I insert >the two values in a tuple that I print. >sometimes it print to me this: (0.0, 3.1926676650124463e-14) >sometimes it print t

Re: [Tutor] strange errors

2014-02-03 Thread Gabriele Brambilla
an example of errors that I obtain is: I build a matrix (SciPy array) using the same data. I search for the maximum and the minimum with the given function and I insert the two values in a tuple that I print. sometimes it print to me this: (0.0, 3.1926676650124463e-14) sometimes it print to me: (na

Re: [Tutor] strange errors

2014-02-02 Thread ALAN GAULD
t: Sunday, 2 February 2014, 17:31 >Subject: Re: [Tutor] strange errors > > > >I use windows 7 command prompt. doing > > >python .py > > >the errors are various...when I will get them again I will write them! > > >thanks > > >Gabriele > > >

Re: [Tutor] strange errors

2014-02-02 Thread Alan Gauld
On 02/02/14 02:11, Gabriele Brambilla wrote: sometimes when I try to run a program in Python I obtain some errors. How are you running the program? doubly clicking in a file manager/explorer? Running from an OS command line? Importing from the Python >>> prompt? Or using some kind of IDE? (Wh

[Tutor] strange errors

2014-02-02 Thread Gabriele Brambilla
Hi, sometimes when I try to run a program in Python I obtain some errors. The strange thing is that sometimes when I run it a second time or when I turn off the pc and I restart later to try to make it works it gives different errors. How could I avoid this problem? I think that it is because it