Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Stéfan van der Walt
2009/2/23 Darren Dale : > On Sun, Feb 22, 2009 at 5:12 PM, Stéfan van der Walt > wrote: >> >> Hi Darren >> >> 2009/2/22 Darren Dale : >> > I am using numpy's assert_array_equal and assert_array_almost_equal to >> > unit >> > test my physical quantities package. I made a single minor change to >> >

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
I think they are identical, its just that asanyarray appears to be targeted for exactly this use-case, so perhaps it is a little faster. I just posted that asanyarray would probably have been a better choice, the posts must have crossed. On Sun, Feb 22, 2009 at 6:52 PM, Andrew Straw wrote: > Dar

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Andrew Straw
Darren, What's the difference between asanyarray(y) and array(y, copy=False, subok=True)? I thought asanyarray would also do what you want. -Andrew Darren Dale wrote: > On Sun, Feb 22, 2009 at 3:22 PM, Darren Dale > wrote: > > On Sun, Feb 22, 2009 at 3:17 PM, Dar

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 5:12 PM, Stéfan van der Walt wrote: > Hi Darren > > 2009/2/22 Darren Dale : > > I am using numpy's assert_array_equal and assert_array_almost_equal to > unit > > test my physical quantities package. I made a single minor change to > > assert_array_compare that I think might

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 5:39 PM, Stéfan van der Walt wrote: > 2009/2/23 Darren Dale : > > That's great, thank you. I finally got the trac website to take the > ticket, > > by the way. > > Actually, it's been taking all your tickets... from 1016 through 1021 :) > Oops, sorry about that. (I was tak

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Stéfan van der Walt
2009/2/23 Darren Dale : > That's great, thank you. I finally got the trac website to take the ticket, > by the way. Actually, it's been taking all your tickets... from 1016 through 1021 :) Cheers Stéfan ___ Numpy-discussion mailing list Numpy-discussion

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 5:12 PM, Stéfan van der Walt wrote: > Hi Darren > > 2009/2/22 Darren Dale : > > I am using numpy's assert_array_equal and assert_array_almost_equal to > unit > > test my physical quantities package. I made a single minor change to > > assert_array_compare that I think might

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Stéfan van der Walt
Hi Darren 2009/2/22 Darren Dale : > I am using numpy's assert_array_equal and assert_array_almost_equal to unit > test my physical quantities package. I made a single minor change to > assert_array_compare that I think might make these functions more useful to > ndarray subclasses, and thought may

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 3:22 PM, Darren Dale wrote: > On Sun, Feb 22, 2009 at 3:17 PM, Darren Dale wrote: > >> Hello, >> >> I am using numpy's assert_array_equal and assert_array_almost_equal to >> unit test my physical quantities package. I made a single minor change to >> assert_array_compare

Re: [Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
On Sun, Feb 22, 2009 at 3:17 PM, Darren Dale wrote: > Hello, > > I am using numpy's assert_array_equal and assert_array_almost_equal to unit > test my physical quantities package. I made a single minor change to > assert_array_compare that I think might make these functions more useful to > ndarr

[Numpy-discussion] small suggestion for numpy.testing utils

2009-02-22 Thread Darren Dale
Hello, I am using numpy's assert_array_equal and assert_array_almost_equal to unit test my physical quantities package. I made a single minor change to assert_array_compare that I think might make these functions more useful to ndarray subclasses, and thought maybe they could be useful to numpy it