[Numpy-discussion] Import patch

2011-04-03 Thread Paul Anton Letnes
Hi. When looking at the loadtxt/savetxt tickets, I noticed that the 're' module is imported in an odd place. I therefore suggest that this import is moved to the top of the file, in order to gather these as much as possible. I find the code easier to read then. After all, there is no 'try / cat

Re: [Numpy-discussion] Matrix to Array Transformation assistance required

2011-04-03 Thread josef . pktd
On Sun, Apr 3, 2011 at 8:03 PM, David Crisp wrote: > Hello, > > I am trying to convert a numpy matrix to an array containing > coordinate pairs,  and I am having difficulty understanding the > transformation process.   I know there is a fairly simply way of doing > this transformation but am unsur

[Numpy-discussion] Remove deprecated skiprows

2011-04-03 Thread Charles R Harris
Should skiprows be removed? if skiprows: warnings.warn(\ "The use of `skiprows` is deprecated, it will be removed in numpy 2.0.\n" \ "Please use `skip_header` instead.", DeprecationWarning) skip_header = skiprows Its been deprecated since 1.

[Numpy-discussion] Matrix to Array Transformation assistance required

2011-04-03 Thread David Crisp
Hello, I am trying to convert a numpy matrix to an array containing coordinate pairs, and I am having difficulty understanding the transformation process. I know there is a fairly simply way of doing this transformation but am unsure of the commands to use. The matrix I have is created with th

Re: [Numpy-discussion] tests with generators & nose: a warning

2011-04-03 Thread Fernando Perez
On Sun, Apr 3, 2011 at 1:37 PM, Ralf Gommers wrote: > That indeed looks much more useful than the nose version. I searched a > bit on the ipython-devel list but couldn't find too much discussion > about the implementation. Would it be at all possible to let it not > stop after the first failure? E

Re: [Numpy-discussion] tests with generators & nose: a warning

2011-04-03 Thread Ralf Gommers
On Sun, Apr 3, 2011 at 9:04 PM, Fernando Perez wrote: > Hey, > > On Sun, Apr 3, 2011 at 7:10 AM, Ralf Gommers > wrote: >> Hi all, >> >> I just came across tests for allclose that were using generators and >> were in a subclass of unittest.TestCase. These tests won't run, nose >> does not support

Re: [Numpy-discussion] tests with generators & nose: a warning

2011-04-03 Thread Fernando Perez
Hey, On Sun, Apr 3, 2011 at 7:10 AM, Ralf Gommers wrote: > Hi all, > > I just came across tests for allclose that were using generators and > were in a subclass of unittest.TestCase. These tests won't run, nose > does not support this (see last line of > http://somethingaboutorange.com/mrl/projec

[Numpy-discussion] tests with generators & nose: a warning

2011-04-03 Thread Ralf Gommers
Hi all, I just came across tests for allclose that were using generators and were in a subclass of unittest.TestCase. These tests won't run, nose does not support this (see last line of http://somethingaboutorange.com/mrl/projects/nose/1.0.0/writing_tests.html). So if you write tests with "yield",