Re: [Numpy-discussion] List/location of consecutive integers

2009-05-25 Thread Andrea Gavana
Hi All, On Fri, May 22, 2009 at 11:28 PM, David Warde-Farley wrote: > On 22-May-09, at 6:13 PM, Christopher Barker wrote: > >> that's why I put a sys.maxint at the end of the series... > > Oops! I foolishly assumed the sequence was unaltered. That makes a lot > more sense. Thank you guys for your

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-25 Thread Andrew Friedley
For some reason the list seems to occasionally drop my messages... Francesc Alted wrote: > A Friday 22 May 2009 13:52:46 Andrew Friedley escrigué: >> I'm the student doing the project. I have a blog here, which contains >> some initial performance numbers for a couple test ufuncs I did: >> >> htt

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-25 Thread Charles R Harris
On Mon, May 25, 2009 at 4:59 AM, Andrew Friedley wrote: > For some reason the list seems to occasionally drop my messages... > > Francesc Alted wrote: > > A Friday 22 May 2009 13:52:46 Andrew Friedley escrigué: > >> I'm the student doing the project. I have a blog here, which contains > >> some i

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-25 Thread Francesc Alted
A Monday 25 May 2009 12:59:31 Andrew Friedley escrigué: > For some reason the list seems to occasionally drop my messages... > > Francesc Alted wrote: > > A Friday 22 May 2009 13:52:46 Andrew Friedley escrigué: > >> I'm the student doing the project. I have a blog here, which contains > >> some in

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Joe Harrington
On Sun, 24 May 2009 18:14:42 -0400 josef.p...@gmail.com wrote: > On Sun, May 24, 2009 at 4:33 PM, Joe Harrington wrote: > > I hate to ask for another function in numpy, but there's an obvious > > one missing in the financial group: xirr. ?It could be done as a new > > function or as an extension t

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Skipper Seabold
On Mon, May 25, 2009 at 11:50 AM, Joe Harrington wrote: > On Sun, 24 May 2009 18:14:42 -0400 josef.p...@gmail.com wrote: >> On Sun, May 24, 2009 at 4:33 PM, Joe Harrington wrote: >> > I hate to ask for another function in numpy, but there's an obvious >> > one missing in the financial group: xirr

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Eric Firing
Francesc Alted wrote: > A Monday 25 May 2009 00:31:43 David Warde-Farley escrigué: >> As Robert's design document for the NPY format says, one option would >> be to implement a minimal subset of the HDF5 protocol *from scratch* >> (that would be required for saving NumPy arrays as top-level leaf >>

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Albert Thuswaldner
>From what I understand, netCFD is based on on HDF5, at least as of the version 4 release. On Mon, May 25, 2009 at 19:19, Eric Firing wrote: > Francesc Alted wrote: >> A Monday 25 May 2009 00:31:43 David Warde-Farley escrigué: >>> As Robert's design document for the NPY format says, one option wo

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 11:50 AM, Joe Harrington wrote: > On Sun, 24 May 2009 18:14:42 -0400 josef.p...@gmail.com wrote: >> On Sun, May 24, 2009 at 4:33 PM, Joe Harrington wrote: >> > I hate to ask for another function in numpy, but there's an obvious >> > one missing in the financial group: xirr

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Eric Firing
Albert Thuswaldner wrote: >>From what I understand, netCFD is based on on HDF5, at least as of the > version 4 release. Netcdf4 is indeed built on hdf5, but netcdf3 is not, and netcdf3 format is likely to stick around for a *very* long time. The netcdf4 library is backwards-compatible with netc

Re: [Numpy-discussion] List/location of consecutive integers

2009-05-25 Thread Neil Crighton
Andrea Gavana gmail.com> writes: > this should be a very easy question but I am trying to make a > script run as fast as possible, so please bear with me if the solution > is easy and I just overlooked it. That's weird, I was trying to solve exactly the same problem a couple of weeks ago for

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Francesc Alted
A Monday 25 May 2009 19:55:28 Eric Firing escrigué: > >> If the aim is to come up with a method of saving numpy arrays that uses > >> a standard protocol and does not introduce large dependencies, then > >> could this be accomplished using netcdf instead of hdf5, specifically > >> Roberto De Almeid

Re: [Numpy-discussion] List/location of consecutive integers

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 1:57 PM, Neil Crighton wrote: > Andrea Gavana gmail.com> writes: > >>     this should be a very easy question but I am trying to make a >> script run as fast as possible, so please bear with me if the solution >> is easy and I just overlooked it. > > That's weird, I was tr

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Eric Firing
Francesc Alted wrote: > A Monday 25 May 2009 19:55:28 Eric Firing escrigué: If the aim is to come up with a method of saving numpy arrays that uses a standard protocol and does not introduce large dependencies, then could this be accomplished using netcdf instead of hdf5, specificall

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Francesc Alted
A Monday 25 May 2009 20:29:25 Eric Firing escrigué: > Francesc Alted wrote: > > A Monday 25 May 2009 19:55:28 Eric Firing escrigué: > If the aim is to come up with a method of saving numpy arrays that > uses a standard protocol and does not introduce large dependencies, > then could

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Joe Harrington
On Mon, 25 May 2009 13:51:38 -0400, josef.p...@gmail.com wrote: > On Mon, May 25, 2009 at 11:50 AM, Joe Harrington wrote: > > On Sun, 24 May 2009 18:14:42 -0400 josef.p...@gmail.com wrote: > >> On Sun, May 24, 2009 at 4:33 PM, Joe Harrington > >> wrote: > >> > I hate to ask for another function

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Skipper Seabold
On Mon, May 25, 2009 at 3:40 PM, Joe Harrington wrote: > On Mon, 25 May 2009 13:51:38 -0400, josef.p...@gmail.com wrote: >> On Mon, May 25, 2009 at 11:50 AM, Joe Harrington >> wrote: >> > On Sun, 24 May 2009 18:14:42 -0400 josef.p...@gmail.com wrote: >> >> On Sun, May 24, 2009 at 4:33 PM, Joe Ha

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 4:27 PM, Skipper Seabold wrote: > On Mon, May 25, 2009 at 3:40 PM, Joe Harrington wrote: >> On Mon, 25 May 2009 13:51:38 -0400, josef.p...@gmail.com wrote: >>> On Mon, May 25, 2009 at 11:50 AM, Joe Harrington >>> wrote: >>> > On Sun, 24 May 2009 18:14:42 -0400 josef.p...

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Pierre GM
Sorry to jump in a conversation I haven't followed too deep in details, but I'm sure you're all aware of the scikits.timeseries package by now. This should at least help you manage the dates operations in a straightforward manner. I think that could be a nice extension to the package: after

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 6:36 PM, Pierre GM wrote: > Sorry to jump in a conversation I haven't followed too deep in > details, but I'm sure you're all aware of the scikits.timeseries > package by now. This should at least help you manage the dates > operations in a straightforward manner. I think t

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
> The advantage of Skippers implementation using actual dates instead of > just an array of numbers is that it is possible to directly calculate > the annual irr, since the time units are well specified. The only > problem is the need for an equation solver in numpy. Just using a date > tuple would

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Pierre GM
On May 25, 2009, at 7:02 PM, josef.p...@gmail.com wrote: > On Mon, May 25, 2009 at 6:36 PM, Pierre GM > wrote: >> Sorry to jump in a conversation I haven't followed too deep in >> details, but I'm sure you're all aware of the scikits.timeseries >> package by now. This should at least help you

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 7:37 PM, Pierre GM wrote: > > On May 25, 2009, at 7:02 PM, josef.p...@gmail.com wrote: > >> On Mon, May 25, 2009 at 6:36 PM, Pierre GM >> wrote: >>> Sorry to jump in a conversation I haven't followed too deep in >>> details, but I'm sure you're all aware of the scikits.tim

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Pierre GM
On May 25, 2009, at 8:06 PM, josef.p...@gmail.com wrote: >>> >>> The problem is, if the functions are enhanced in the current numpy, >>> then scikits.timeseries is not (yet) available. >> >> Mmh, I'm not following you here... > > The original question was how we can enhance numpy.financial, eg.

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 7:27 PM, wrote: >> The advantage of Skippers implementation using actual dates instead of >> just an array of numbers is that it is possible to directly calculate >> the annual irr, since the time units are well specified. The only >> problem is the need for an equation so

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 8:30 PM, Pierre GM wrote: > > On May 25, 2009, at 8:06 PM, josef.p...@gmail.com wrote: The problem is, if the functions are enhanced in the current numpy, then scikits.timeseries is not (yet) available. >>> >>> Mmh, I'm not following you here... >> >> The ori

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Matt Knox
forgive me for jumping in on this thread and playing devil's advocate here, but I am a natural pessimist so please bear with me :) ... I think as this discussion has already demonstrated, it is *extremely* difficult to build a solid general purpose API for financial functions (even seemingly simpl

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-25 Thread David Cournapeau
Charles R Harris wrote: > > > On Mon, May 25, 2009 at 4:59 AM, Andrew Friedley > wrote: > > For some reason the list seems to occasionally drop my messages... > > Francesc Alted wrote: > > A Friday 22 May 2009 13:52:46 Andrew Friedley escrigué: > >> I'm

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 9:18 PM, Matt Knox wrote: > forgive me for jumping in on this thread and playing devil's advocate here, > but > I am a natural pessimist so please bear with me :) ... It's good to hear from a real finance person. > > I think as this discussion has already demonstrated, i

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Matt Knox
gmail.com> writes: > So, while python won't get any "industrial strength" finance package, > a more modest "designer package" would be feasible, if there were any > interest in it (which I haven't seen). > > ... > > The even more modest question is whether we would want to match open > office i

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Robert Ferrell
I haven't read all the messages in detail, and I'm a consumer not a producer, but I'll comment anyways. I'd love to see additional "financial" functionality, but I'd like to see them in a scikit, not in numpy. I think to be useful they are too complicated to go into numpy. A couple of my m

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Robert Ferrell
On May 25, 2009, at 9:15 PM, Matt Knox wrote: > gmail.com> writes: > >> So, while python won't get any "industrial strength" finance package, >> a more modest "designer package" would be feasible, if there were any >> interest in it (which I haven't seen). >> >> ... >> >> The even more modest qu

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread josef . pktd
On Mon, May 25, 2009 at 11:29 PM, Robert Ferrell wrote: > I haven't read all the messages in detail, and I'm a consumer not a > producer, but I'll comment anyways. > > I'd love to see additional "financial" functionality, but I'd like to > see them in a scikit, not in numpy.  I think to be useful

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Joe Harrington
Let's keep this thread focussed on the original issue: just add a floating array of times to irr or a new xirr continuous interest no more Anyone can use the timeseries package to produce a floating array of times from normal dates, if those are the dates they want. If they want some specialized

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Christopher Barker
David Warde-Farley wrote: > As Robert's design document for the NPY format says, one option would > be to implement a minimal subset of the HDF5 protocol *from scratch* That would be really cool -- I wonder how hard it would be to implement just the current NPY features? Judging from this: h

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Robert Kern
On Mon, May 25, 2009 at 23:59, Joe Harrington wrote: > Let's keep this thread focussed on the original issue: > > just add a floating array of times to irr or a new xirr > continuous interest > no more > > Anyone can use the timeseries package to produce a floating array of > times from normal dat

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Robert Kern
On Tue, May 26, 2009 at 00:11, Christopher Barker wrote: > David Warde-Farley wrote: >> As Robert's design document for the NPY format says, one option would >> be to implement a minimal subset of the HDF5 protocol *from scratch* > > That would be really cool -- I wonder how hard it would be to im

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Skipper Seabold
On Tue, May 26, 2009 at 1:12 AM, Robert Kern wrote: > On Mon, May 25, 2009 at 23:59, Joe Harrington wrote: >> Let's keep this thread focussed on the original issue: >> >> just add a floating array of times to irr or a new xirr >> continuous interest >> no more >> >> Anyone can use the timeseries

Re: [Numpy-discussion] Inconsistent error messages.

2009-05-25 Thread Christopher Barker
Charles R Harris wrote: > I don't like the idea of a warning here either. How about adding a > keyword 'strict' so that strict=1 means an error is raised if the count > isn't reached, and strict=0 means any count is acceptable? I'd prefer a more meaningful name than "strict" -- you'd have absolu

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Robert Kern
On Tue, May 26, 2009 at 00:20, Skipper Seabold wrote: > My only question then would be why have numpy.financials in the first > place? You can go through the old threads for the arguments. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Numpy-discussion] add xirr to numpy financial functions?

2009-05-25 Thread Charles R Harris
On Mon, May 25, 2009 at 6:55 PM, wrote: > On Mon, May 25, 2009 at 7:27 PM, wrote: > >> The advantage of Skippers implementation using actual dates instead of > >> just an array of numbers is that it is possible to directly calculate > >> the annual irr, since the time units are well specified.

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Christopher Barker
Robert Kern wrote: > Yes. That's why I wrote the NPY format instead. I *did* do some due > diligence before I designed a new binary format. I assumed so, and I also assume you took a look at netcdf3, but since it's been brought up here, I take it it dint fit the bill? Even if it did, while it wi

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread David Warde-Farley
On 26-May-09, at 1:15 AM, Robert Kern wrote: > I *did* do some due diligence before I designed a new binary format. Uh oh, I feel this might've taken a sharp turn towards another "of course Robert is right, Robert is always right" threads. :) David

Re: [Numpy-discussion] parsing text strings/files in fromfile, fromstring

2009-05-25 Thread Christopher Barker
Charles R Harris wrote: > I am trying to put together some rule for parsing text strings/files in > fromfile, fromstring so that the two are consistent. Thanks for giving these some attention -- they've needed it for a while! > 1) When the string/file is empty fromfile returns and empty array, s

Re: [Numpy-discussion] Home for pyhdf5io?

2009-05-25 Thread Francesc Alted
A Tuesday 26 May 2009 08:02:43 David Warde-Farley escrigué: > On 26-May-09, at 1:15 AM, Robert Kern wrote: > > I *did* do some due diligence before I designed a new binary format. > > Uh oh, I feel this might've taken a sharp turn towards another "of > course Robert is right, Robert is always righ

[Numpy-discussion] CUDA

2009-05-25 Thread Brennan Williams
Not a question really but just for discussion/pie-in-the-sky etc This is a news item on vizworld about getting Matlab code to run on a CUDA enabled GPU. http://www.vizworld.com/2009/05/cuda-enable-matlab-with-gpumat/ If the use of GPU's for numerical tasks takes off (has it already?) then

Re: [Numpy-discussion] CUDA

2009-05-25 Thread David Cournapeau
Brennan Williams wrote: > Not a question really but just for discussion/pie-in-the-sky etc > > This is a news item on vizworld about getting Matlab code to run on a > CUDA enabled GPU. > > http://www.vizworld.com/2009/05/cuda-enable-matlab-with-gpumat/ > There is this which looks similar f

Re: [Numpy-discussion] numpy ufuncs and COREPY - any info?

2009-05-25 Thread Francesc Alted
A Tuesday 26 May 2009 03:11:56 David Cournapeau escrigué: > Charles R Harris wrote: > > On Mon, May 25, 2009 at 4:59 AM, Andrew Friedley > > wrote: > > > > For some reason the list seems to occasionally drop my messages... > > > > Francesc Alted wrote: > >