[Numpy-discussion] code review/build & test for datetime business day API

2011-06-14 Thread Mark Wiebe
These functions are now fully implemented and documented. As always, code reviews are welcome here: https://github.com/numpy/numpy/pull/87 and for those that don't want to dig into review C code, the commit for the documentation is here: https://github.com/m-paradox/numpy/commit/6b5a42a777b16812

Re: [Numpy-discussion] fixing up datetime

2011-06-14 Thread Mark Wiebe
On Mon, Jun 13, 2011 at 11:59 AM, wrote: > I'm joining this late (I've been traveling), but it might be useful to > look at the fairly new R module "lubridate". They have put quite some > thought into simplifying date handling, and when I have used it I have > generally been quite pleased. The do

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-14 Thread Pauli Virtanen
On Tue, 14 Jun 2011 15:37:36 -0500, Mark Wiebe wrote: [clip] > It would be nice to get a fix to this newly reported regression in: > > http://projects.scipy.org/numpy/ticket/1867 I see that regression only in master, not in 1.6.x, so I don't think it will delay 1.6.1. Pauli

Re: [Numpy-discussion] Adjacent matrix

2011-06-14 Thread Gael Varoquaux
On Tue, Jun 14, 2011 at 10:29:38AM -0300, Thiago Franco Moraes wrote: > I don't know if I understand. The idea is to use _make_edges_3d to > give me the connectivity, isn't it? Like for example, a 3x3 image: > 0, 1, 2 > 3, 4, 5 > 6, 7, 8 > If I use _make_edges_3d(3, 3) I get: > array([[0, 1, 3,

Re: [Numpy-discussion] fixing up datetime

2011-06-14 Thread Mark Wiebe
On Fri, Jun 10, 2011 at 7:04 PM, Pierre GM wrote: > > On Jun 11, 2011, at 1:03 AM, Mark Wiebe wrote: > > > > I don't think you would want to extend the datetime with more metadata, > but rather use it as a tool to create the timeseries with. You could create > a lightweight wrapper around datetim

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-14 Thread Mark Wiebe
On Mon, Jun 13, 2011 at 7:58 AM, Ralf Gommers wrote: > Hi, > > I am pleased to announce the availability of the first release candidate of > NumPy 1.6.1. This is a bugfix release, list of fixed bugs: > #1834 einsum fails for specific shapes > #1837 einsum throws nan or freezes python for speci

Re: [Numpy-discussion] Adjacent matrix

2011-06-14 Thread Thiago Franco Moraes
On Tue, Jun 14, 2011 at 11:09 AM, Luis Pedro Coelho wrote: > On Tuesday, June 14, 2011 08:50:47 AM Thiago Franco Moraes wrote: >> On Tue, Jun 14, 2011 at 8:06 AM, Luis Pedro Coelho wrote: >> > On Monday, June 13, 2011 03:55:46 PM Thiago Franco Moraes wrote: >> >> "Find all of the grid points in t

Re: [Numpy-discussion] Adjacent matrix

2011-06-14 Thread Luis Pedro Coelho
On Tuesday, June 14, 2011 08:50:47 AM Thiago Franco Moraes wrote: > On Tue, Jun 14, 2011 at 8:06 AM, Luis Pedro Coelho wrote: > > On Monday, June 13, 2011 03:55:46 PM Thiago Franco Moraes wrote: > >> "Find all of the grid points in that lie adjacent to one or more grid > >> points of opposite valu

Re: [Numpy-discussion] Adjacent matrix

2011-06-14 Thread Thiago Franco Moraes
On Mon, Jun 13, 2011 at 5:03 PM, Gael Varoquaux wrote: > Hi, > > You can probably find some inspiration from > https://github.com/scikit-learn/scikit-learn/blob/master/scikits/learn/feature_extraction/image.py > > Gaël Hi Gaël, I don't know if I understand. The idea is to use _make_edges_3d to g

Re: [Numpy-discussion] Adjacent matrix

2011-06-14 Thread Thiago Franco Moraes
On Tue, Jun 14, 2011 at 8:06 AM, Luis Pedro Coelho wrote: > On Monday, June 13, 2011 03:55:46 PM Thiago Franco Moraes wrote: >> "Find all of the grid points in that lie adjacent to one or more grid >> points of opposite values." >> >> This is the code used to calculate that matrix: > [spin] >> Whe

Re: [Numpy-discussion] Adjacent matrix

2011-06-14 Thread Luis Pedro Coelho
On Monday, June 13, 2011 03:55:46 PM Thiago Franco Moraes wrote: > "Find all of the grid points in that lie adjacent to one or more grid > points of opposite values." > > This is the code used to calculate that matrix: [spin] > Where nx, ny and nz are the x, y, z dimensions from the "im" input > b

Re: [Numpy-discussion] ANN: Numpy 1.6.1 release candidate 1

2011-06-14 Thread Scott Sinclair
On 13 June 2011 17:11, Derek Homeier wrote: > you're right - I've tried to download the tarball, but am getting connection > errors or incomplete > downloads from all available SF mirrors, and apparently I was still too thick > to figure out how > to checkout a specific tag... I find the cleane