Re: [Numpy-discussion] Rounding the decimal part of a real number

2011-04-06 Thread dileep kunjaai
Thank you sir... thank you very much. On Wed, Apr 6, 2011 at 9:36 PM, Christopher Barker wrote: > On 4/6/11 6:24 AM, Alan G Isaac wrote: > > http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html > > simple enough, of course, but just to be clear: > > In [1

Re: [Numpy-discussion] Uninstallation of 1.6.0b2 leaves files behind with Python3.x under windows 7

2011-04-06 Thread David Cournapeau
On Thu, Apr 7, 2011 at 11:01 AM, Bruce Southey wrote: > Hi, >  I tend to get files left behind for 32-bit versions of Python 3.1 and > Python3.2 usually after I have ran the tests and then immediately try > to uninstall it using the Windows uninstaller via control panel. > > With  Python 3.1 files

[Numpy-discussion] Uninstallation of 1.6.0b2 leaves files behind with Python3.x under windows 7

2011-04-06 Thread Bruce Southey
Hi, I tend to get files left behind for 32-bit versions of Python 3.1 and Python3.2 usually after I have ran the tests and then immediately try to uninstall it using the Windows uninstaller via control panel. With Python 3.1 files are left behind have the '.pyd' suffix: C:\Python31\Lib\site-pack

Re: [Numpy-discussion] Installation problem: numpy1.5.1 + python2.7 + virtualenv-1, 5, 1

2011-04-06 Thread Vicent Mas
On 2011-04-05 Vicent Mas said: > Hi, > > I'm trying to install numpy1.5.1 in a virtual environment > (virtualenv-1.5.1) on my debian testing box. I'm using python 2.7 > installed from a debian package. > > [...] > > Doing the same with python2.6 (also from debian package) works just fine. > Cou

Re: [Numpy-discussion] Installation problem: numpy1.5.1 + python2.7 + virtualenv-1, 5, 1

2011-04-06 Thread Ralf Gommers
On Wed, Apr 6, 2011 at 8:08 PM, Ralf Gommers wrote: > On Tue, Apr 5, 2011 at 11:17 PM, Vicent Mas wrote: >> Hi, >> >> I'm trying to install numpy1.5.1 in a virtual environment (virtualenv-1.5.1) >> on my debian testing box. I'm using python 2.7 installed from a debian >> package. >> >> This is wh

Re: [Numpy-discussion] Installation problem: numpy1.5.1 + python2.7 + virtualenv-1, 5, 1

2011-04-06 Thread Ralf Gommers
On Tue, Apr 5, 2011 at 11:17 PM, Vicent Mas wrote: > Hi, > > I'm trying to install numpy1.5.1 in a virtual environment (virtualenv-1.5.1) > on my debian testing box. I'm using python 2.7 installed from a debian > package. > > This is what I get: > > (venv2.7)vmas@rachael$ python setup.py install >

Re: [Numpy-discussion] Rounding the decimal part of a real number

2011-04-06 Thread Christopher Barker
On 4/6/11 6:24 AM, Alan G Isaac wrote: > http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html simple enough, of course, but just to be clear: In [108]: np.round(1.23456789, 3) Out[108]: 1.2351 so the number is rounded to the requested number of decimal places, but t

Re: [Numpy-discussion] ANN: Numpy 1.6.0 beta 2

2011-04-06 Thread Christopher Barker
On 4/5/11 10:33 PM, Matthew Brett wrote: > Did you mean to send this just to me? It seems like the whole is > generally interesting and helpful, at least to me... I did mean to send to the list -- I've done that now. > Well, the current code doesn't split on \r in py3k, admittedly that > must be

Re: [Numpy-discussion] ANN: Numpy 1.6.0 beta 2

2011-04-06 Thread Christopher Barker
Sorry to keep harping on this, but for history's sake, I was one of the folks that got 'U' introduced in the first place. I was dealing with a nightmare of unix, mac and dos test files, 'U' was a godsend. On 4/5/11 4:51 PM, Matthew Brett wrote: > The difference between 'rt' and 'U' is (this is

Re: [Numpy-discussion] Rounding the decimal part of a real number

2011-04-06 Thread Alan G Isaac
On 4/6/2011 9:14 AM, dileep kunjaai wrote: > Is there any function for rounding the real number, for "n" (say) decimal > places: http://www.google.com/search?q=numpy+round produces http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html Cheers, Alan Isaac

[Numpy-discussion] Rounding the decimal part of a real number

2011-04-06 Thread dileep kunjaai
Dear sir, Is there any function for rounding the real number, for "n" (say) decimal places: Example: Let X= 6.9867349234888211237767867863478728314... but i need only 4 decimal position. That is the answer should be.. >>>answer=6.9867 -- DILEEPKUMAR. R J R F, IIT DELHI ___

Re: [Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Emmanuelle Gouillart
Hi Zach and Derek, thank you very much for your quick and clear answers. Of course the third parameter is the out array, I was just being very stupid! (I had read the documentation though, but somehow it didn't make it to my brain :-) Sorry... > Read the documentation for numpy.minimum and numpy.

Re: [Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Derek Homeier
Hi Emmanuelle, a, b, c = np.array([10]), np.array([2]), np.array([7]) min_val = np.minimum(a, b, c) min_val > array([2]) max_val = np.maximum(a, b, c) max_val > array([10]) min_val > array([10]) > > (I'm using numpy 1.4, and I observed the same behavior with numpy > 2

Re: [Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Zachary Pincus
> a, b, c = np.array([10]), np.array([2]), np.array([7]) min_val = np.minimum(a, b, c) min_val > array([2]) max_val = np.maximum(a, b, c) max_val > array([10]) min_val > array([10]) > > (I'm using numpy 1.4, and I observed the same behavior with numpy > 2.0.0.dev8600 o

[Numpy-discussion] strange behavior of np.minimum and np.maximum

2011-04-06 Thread Emmanuelle Gouillart
Hello, >>> a, b, c = np.array([10]), np.array([2]), np.array([7]) >>> min_val = np.minimum(a, b, c) >>> min_val array([2]) >>> max_val = np.maximum(a, b, c) >>> max_val array([10]) >>> min_val array([10]) (I'm using numpy 1.4, and I observed the same behavior with numpy 2.0.0.dev8600 on a

[Numpy-discussion] Scientific Python at SIAM CSE 2011 conference

2011-04-06 Thread Fernando Perez
Hi all, sorry for the massive cross-post, but since all these projects were highlighted with talks at this event, I figured there would be interest... Hans-Petter Langtangen, Randy LeVeque and I organized a set of Python-focused sessions at the recent SIAM Computational Science and Engineering co