Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
On Tue, Apr 8, 2008 at 4:55 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > 2. I'll work on random and report shortly. As far as I can tell, there are no problems at all. I'm running bic128[scipy]$ cython --version Cython version 0.9.6.12 This is both on 64-bit Fedora 8 and 32-bit Ubuntu 7.10

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-08 Thread Steven H. Rogers
Fernando Perez wrote: > On Tue, Apr 8, 2008 at 2:23 PM, Steven H. Rogers <[EMAIL PROTECTED]> wrote: > >> On Tue, April 8, 2008 07:28, Gael Varoquaux wrote: >> > ... >> >> >> > http://ipython.scipy.org/doc/ipython1/html/ >> > http://ipython.scipy.org/doc/ipython1/ipython1.pdf >> > >> >

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
On Tue, Apr 8, 2008 at 6:52 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > This is off-topic and should be directed to the pyrex/cython list, but > since we're on the subject: > > I suppose the following is true, but let me ask, since I have not used > Cython. Please correct me if I'm wrong. > >

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
Howdy, On Tue, Apr 8, 2008 at 4:55 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > 1. Do you want me to obliterate the old numpy/doc/pyrex and replace it > with numpy/doc/cython? That would make it clear what the tool to use > is... OK, the code is ready and I just updated the docs/makefile a

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Andrew Straw
This is off-topic and should be directed to the pyrex/cython list, but since we're on the subject: I suppose the following is true, but let me ask, since I have not used Cython. Please correct me if I'm wrong. I have a bunch of pyrex compiled .pyx code. If I start adding some Cython compiled code

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
On Tue, Apr 8, 2008 at 4:38 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > I say just add it. We should move forward with Cython. More important > is to see if random actually builds with Cython right now. There was an > issue that I recall from a few weeks ago that Cython could not bu

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Travis E. Oliphant
Fernando Perez wrote: > On Tue, Apr 8, 2008 at 4:21 PM, Gael Varoquaux > <[EMAIL PROTECTED]> wrote: > >> On Tue, Apr 08, 2008 at 04:20:28PM -0700, Robert Kern wrote: >> > I'm not sure how it could. It's example code, not part of numpy itself. >> >> OK, maybe I should keep my 2 cents. They appe

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
On Tue, Apr 8, 2008 at 4:31 PM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Tue, Apr 08, 2008 at 04:28:11PM -0700, Fernando Perez wrote: > > I *could* make it pyrex/cython-valid, it's trivial but just adds noise > > IMHO... As Stefan said, pyrex is essentially unmaintained as far as > > publ

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Gael Varoquaux
On Tue, Apr 08, 2008 at 04:28:11PM -0700, Fernando Perez wrote: > I *could* make it pyrex/cython-valid, it's trivial but just adds noise > IMHO... As Stefan said, pyrex is essentially unmaintained as far as > publicly-visible development goes, while cython is very actively > moving ahead and likel

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
On Tue, Apr 8, 2008 at 4:21 PM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Tue, Apr 08, 2008 at 04:20:28PM -0700, Robert Kern wrote: > > I'm not sure how it could. It's example code, not part of numpy itself. > > OK, maybe I should keep my 2 cents. They appear to be forged money, and > worth

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Gael Varoquaux
On Tue, Apr 08, 2008 at 04:20:28PM -0700, Robert Kern wrote: > I'm not sure how it could. It's example code, not part of numpy itself. OK, maybe I should keep my 2 cents. They appear to be forged money, and worth nothing. :-). Gaël ___ Numpy-discussion

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Robert Kern
On Tue, Apr 8, 2008 at 4:17 PM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Wed, Apr 09, 2008 at 01:15:23AM +0200, Stéfan van der Walt wrote: > > I'm in favour of switching -- pyrex is as good as unmaintained, and in > > contrast cython is improving by the day. Do the changes cause > > probl

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Gael Varoquaux
On Wed, Apr 09, 2008 at 01:15:23AM +0200, Stéfan van der Walt wrote: > I'm in favour of switching -- pyrex is as good as unmaintained, and in > contrast cython is improving by the day. Do the changes cause > problems with pyrex, or can we even have both working at the same > time? Either way, we

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Stéfan van der Walt
On 09/04/2008, Fernando Perez <[EMAIL PROTECTED]> wrote: > Do we want to just switch over to cython and use this instead? If > people think that the cython switch is OK for 1.0.5 I can do it, but > I'm not about to touch this before others approve... I'm in favour of switching -- pyrex is as g

Re: [Numpy-discussion] numpyx.pyx (recent svn) works?

2008-04-08 Thread Fernando Perez
Hey, On Thu, Feb 28, 2008 at 9:17 AM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 7:35 AM, Neal Becker <[EMAIL PROTECTED]> wrote: > > I tried numpyx.pyx with cython-0.9.6.12. > > These were written for and still work with Pyrex. If it doesn't work > with Cython then that is

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-08 Thread Fernando Perez
On Tue, Apr 8, 2008 at 2:23 PM, Steven H. Rogers <[EMAIL PROTECTED]> wrote: > On Tue, April 8, 2008 07:28, Gael Varoquaux wrote: > > ... > > > > > http://ipython.scipy.org/doc/ipython1/html/ > > http://ipython.scipy.org/doc/ipython1/ipython1.pdf > > > > Sphinx seems a very promising to the eve

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-08 Thread Steven H. Rogers
On Tue, April 8, 2008 07:28, Gael Varoquaux wrote: > ... > > http://ipython.scipy.org/doc/ipython1/html/ > http://ipython.scipy.org/doc/ipython1/ipython1.pdf > > Sphinx seems a very promising to the everlasting problem of documentation. > Thanks for bringing this up. I need to look at Sphinx. Reg

Re: [Numpy-discussion] Ticket #605 Incorrect behavior of numpy.histogram

2008-04-08 Thread David Huard
2008/4/8, Bruce Southey <[EMAIL PROTECTED]>: > > Hi, > I agree that the current histogram should be changed. However, I am not > sure 1.0.5 is the correct release for that. We both agree. David, this doesn't work for your code: > r= np.array([1,2,2,3,3,3,4,4,4,4,5,5,5,5,5]) > dbin=[2,3,4] > rc,

[Numpy-discussion] test_financial.py

2008-04-08 Thread Nils Wagner
Hi all, several test failures are present in svn File "/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", line 4, in test_financial Failed example: rate(10,0,-3500,1) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.4/doctest.py"

Re: [Numpy-discussion] Ticket #605 Incorrect behavior of numpy.histogram

2008-04-08 Thread Bruce Southey
Hi, I agree that the current histogram should be changed. However, I am not sure 1.0.5 is the correct release for that. David, this doesn't work for your code: r= np.array([1,2,2,3,3,3,4,4,4,4,5,5,5,5,5]) dbin=[2,3,4] rc, rb=histogram(r, bins=dbin, discard=None) Returns: rc=[3 3] # Really should

Re: [Numpy-discussion] Array printing and another question

2008-04-08 Thread Ken Basye
Hi, Thanks, but it's been my experience that formatting FP numbers into decimal causes a lot of false alarms all by itself; that is, you get different decimal representations of the same FP memory value. I've had this happen often enough that I found the first thing I did when an output diffe

Re: [Numpy-discussion] Array printing and another question

2008-04-08 Thread Alan G Isaac
Will set_printoptions not work for you? http://www.scipy.org/Numpy_Example_List_With_Doc#head-cc1302f5e9e57de71b578cf25e8a9ffd8aa3a707> hth, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/list

[Numpy-discussion] Array printing and another question

2008-04-08 Thread Ken Basye
Hi Folks, I'm pretty new to Numpy, and I hope someone can help me out with a couple newbie questions. First, I'd like, for diagnostic purposes, to print arrays of floating point numbers in a format of my choosing. Specifically, I have a formatting function that generates strings which rep

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-08 Thread Gael Varoquaux
On Tue, Apr 08, 2008 at 06:15:25AM -0600, Steven H. Rogers wrote: > At the IPython Sprint in Boulder last year Fernando suggested that > someone look at this issue. I've given it some thought and started a > wiki page for it. Inputs would be welcome and might motivate me to find > the time to

Re: [Numpy-discussion] Ticket #605 Incorrect behavior of numpy.histogram

2008-04-08 Thread David Huard
Hans, Note that the current histogram is buggy, in the sense that it assumes that all bins have the same width and computes db = bins[1]-bin[0]. This is why you get zeros everywhere. The current behavior has been heavily criticized and I think we should change it. My proposal is to have for histo

Re: [Numpy-discussion] packaging scipy (was Re: Simple financial functions for NumPy)

2008-04-08 Thread Steven H. Rogers
Perry Greenfield wrote: > ... > Some random comments: > > 1) It seems to me that the primary problem people have with a big > flat namespace is that it makes the output of dir() long and > unusable, and by implication, that a nice hierarchical organization > would make it easier for people to

Re: [Numpy-discussion] bug with with fill_values in masked arrays?

2008-04-08 Thread Hans Meine
Am Dienstag, 25. März 2008 15:33:58 schrieb Chris Withers: > > Because in your particular case, you're inspecting elements one by one, > > and then, your masked data becomes the masked singleton which is a > > special value. > > I'd argue that the masked singleton having a different fill value to t

Re: [Numpy-discussion] Generically Creating Intermediate Data Compatible with Either ndarray or MasledArray Types

2008-04-08 Thread Hans Meine
Am Dienstag, 11. März 2008 20:57:30 schrieb Alexander Michael: > Incidentally, while ones_like appears to play nice with derived > classes, empty_like and zeros_like do not seem to do the same. Shouldn't this be fixed? (Obviously, this stems from the fact that ones_like is implemented in C, whil

Re: [Numpy-discussion] Ticket #605 Incorrect behavior of numpy.histogram

2008-04-08 Thread Hans Meine
Am Montag, 07. April 2008 14:34:08 schrieb Hans Meine: > Am Samstag, 05. April 2008 21:54:27 schrieb Anne Archibald: > > There's also a fourth option - raise an exception if any points are > > outside the range. > > +1 > > I think this should be the default. Otherwise, I tend towards "exclude", >

Re: [Numpy-discussion] Back to Simple financial functions for NumPy (was Re: packaging scipy)

2008-04-08 Thread Charles R Harris
On Mon, Apr 7, 2008 at 2:56 PM, Gael Varoquaux < [EMAIL PROTECTED]> wrote: > On Mon, Apr 07, 2008 at 03:52:45PM -0500, Travis E. Oliphant wrote: > > This discussion is interesting, but it is really better suited for 1.1, > > isn't it? > > Yes. The original dicussion was about adding simple financi