Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Charles R Harris
On Sun, Oct 27, 2013 at 10:13 PM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > > On Sun, Oct 27, 2013 at 12:28 PM, Freddie Witherden > wrote: > >> Hi all, >> >> This is a question which has been bugging me for a while. I have an (N, >> 3) array where N ~ 16 of points. These points

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Charles R Harris
On Sun, Oct 27, 2013 at 12:28 PM, Freddie Witherden wrote: > Hi all, > > This is a question which has been bugging me for a while. I have an (N, > 3) array where N ~ 16 of points. These points are all unique and > separated by a reasonable distance. > > I wish to sort these points into a canonic

[Numpy-discussion] memmory management question

2013-10-27 Thread Georgios Exarchakis
Hi, I am using numpy with ipython from anaconda and I observe the following behavior: Python 2.7.5 |Anaconda 1.7.0 (64-bit)| (default, Jun 28 2013, 22:10:09) Type "copyright", "credits" or "license" for more information. IPython 1.0.0 -- An enhanced Interactive Python. ? -

Re: [Numpy-discussion] Code review request: PrintOptions

2013-10-27 Thread Aron Ahmadia
On Sun, Oct 27, 2013 at 9:42 PM, Neil Girdhar wrote: > Yeah, I realized that I missed that and figured it wouldn't matter since > it was my own master and I don't plan on making other changes to numpy. If > you don't mind, how do I move my changelist into a branch? I'm really > worried I'm goin

Re: [Numpy-discussion] Code review request: PrintOptions

2013-10-27 Thread Neil Girdhar
Is this what I want? https://github.com/numpy/numpy/pull/3987 On Sun, Oct 27, 2013 at 9:42 PM, Neil Girdhar wrote: > Yeah, I realized that I missed that and figured it wouldn't matter since > it was my own master and I don't plan on making other changes to numpy. If > you don't mind, how do I

Re: [Numpy-discussion] Code review request: PrintOptions

2013-10-27 Thread Neil Girdhar
Yeah, I realized that I missed that and figured it wouldn't matter since it was my own master and I don't plan on making other changes to numpy. If you don't mind, how do I move my changelist into a branch? I'm really worried I'm going to lose my changes. On Sun, Oct 27, 2013 at 9:38 PM, Charle

Re: [Numpy-discussion] Code review request: PrintOptions

2013-10-27 Thread Charles R Harris
On Sun, Oct 27, 2013 at 7:23 PM, Neil Girdhar wrote: > This is my first code review request, so I may have done some things > wrong. I think the following URL should work? > https://github.com/MisterSheik/numpy/compare > > The first thing to do is make a new branch for your work. Probably the ea

[Numpy-discussion] Code review request: PrintOptions

2013-10-27 Thread Neil Girdhar
This is my first code review request, so I may have done some things wrong. I think the following URL should work? https://github.com/MisterSheik/numpy/compare Best, Neil ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.or

Re: [Numpy-discussion] Testing

2013-10-27 Thread Neil Girdhar
Since I am trying to add a "printoptions" context manager, I would like to test it. Should I add tests, or can I somehow use it from an ipython shell? On Sun, Oct 27, 2013 at 7:12 PM, Charles R Harris wrote: > > > > On Sun, Oct 27, 2013 at 4:59 PM, Neil Girdhar wrote: > >> How do I test a patc

Re: [Numpy-discussion] Testing

2013-10-27 Thread Neil Girdhar
Ah, sorry, didn't see that I can do that from runtests!! Thanks!! On Sun, Oct 27, 2013 at 7:13 PM, Neil Girdhar wrote: > Since I am trying to add a "printoptions" context manager, I would like to > test it. Should I add tests, or can I somehow use it from an ipython shell? > > > On Sun, Oct 2

Re: [Numpy-discussion] Testing

2013-10-27 Thread Charles R Harris
On Sun, Oct 27, 2013 at 4:59 PM, Neil Girdhar wrote: > How do I test a patch that I've made locally? I can't seem to import > numpy locally: > > Error importing numpy: you should not try to import numpy from > its source directory; please exit the numpy source tree, and > relaunch >

Re: [Numpy-discussion] Testing

2013-10-27 Thread Nathaniel Smith
On Sun, Oct 27, 2013 at 10:59 PM, Neil Girdhar wrote: > How do I test a patch that I've made locally? I can't seem to import numpy > locally: > > Error importing numpy: you should not try to import numpy from > its source directory; please exit the numpy source tree, and > relaunch >

[Numpy-discussion] Testing

2013-10-27 Thread Neil Girdhar
How do I test a patch that I've made locally? I can't seem to import numpy locally: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python intepreter from there. _

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Nathaniel Smith
On Sun, Oct 27, 2013 at 10:41 PM, Freddie Witherden wrote: > On 27/10/13 21:05, Jonathan March wrote: >> If an "almost always works" solution is good enough, then sort on the >> distance to some fixed random point that is in the vicinity of your N >> points. > > I had considered this. Unfortunate

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Freddie Witherden
On 27/10/13 21:05, Jonathan March wrote: > If an "almost always works" solution is good enough, then sort on the > distance to some fixed random point that is in the vicinity of your N > points. I had considered this. Unfortunately I need a solution which really does always work. The only pure-P

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Jonathan March
If an "almost always works" solution is good enough, then sort on the distance to some fixed random point that is in the vicinity of your N points. Jonathan On Sun, Oct 27, 2013 at 3:51 PM, Freddie Witherden wrote: > On 27/10/13 20:22, josef.p...@gmail.com wrote: > > On Sun, Oct 27, 2013 at 3:2

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Freddie Witherden
On 27/10/13 20:22, josef.p...@gmail.com wrote: > On Sun, Oct 27, 2013 at 3:22 PM, Freddie Witherden > wrote: >> On 27/10/13 18:54, Daniele Nicolodi wrote: >>> On 27/10/2013 19:42, Freddie Witherden wrote: On 27/10/13 18:35, Nathaniel Smith wrote: > On Sun, Oct 27, 2013 at 6:28 PM, Freddie

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread josef . pktd
On Sun, Oct 27, 2013 at 4:22 PM, wrote: > On Sun, Oct 27, 2013 at 3:22 PM, Freddie Witherden > wrote: >> On 27/10/13 18:54, Daniele Nicolodi wrote: >>> On 27/10/2013 19:42, Freddie Witherden wrote: On 27/10/13 18:35, Nathaniel Smith wrote: > On Sun, Oct 27, 2013 at 6:28 PM, Freddie With

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread josef . pktd
On Sun, Oct 27, 2013 at 3:22 PM, Freddie Witherden wrote: > On 27/10/13 18:54, Daniele Nicolodi wrote: >> On 27/10/2013 19:42, Freddie Witherden wrote: >>> On 27/10/13 18:35, Nathaniel Smith wrote: On Sun, Oct 27, 2013 at 6:28 PM, Freddie Witherden wrote: > Hi all, > > This

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Freddie Witherden
On 27/10/13 18:54, Daniele Nicolodi wrote: > On 27/10/2013 19:42, Freddie Witherden wrote: >> On 27/10/13 18:35, Nathaniel Smith wrote: >>> On Sun, Oct 27, 2013 at 6:28 PM, Freddie Witherden >>> wrote: Hi all, This is a question which has been bugging me for a while. I have an (N,

Re: [Numpy-discussion] A context manager for print options

2013-10-27 Thread Matthew Brett
Hi, On Sun, Oct 27, 2013 at 2:01 AM, Neil Girdhar wrote: > Why not replace get_printoptions/set_printoptions with a context manager > accessed using numpy.printoptions in the same way that numpy.errstate > exposes a context manager to seterr/geterr? This would make the set method > redundant. >

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Daniele Nicolodi
On 27/10/2013 19:42, Freddie Witherden wrote: > On 27/10/13 18:35, Nathaniel Smith wrote: >> On Sun, Oct 27, 2013 at 6:28 PM, Freddie Witherden >> wrote: >>> Hi all, >>> >>> This is a question which has been bugging me for a while. I have an (N, >>> 3) array where N ~ 16 of points. These points

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Freddie Witherden
On 27/10/13 18:35, Nathaniel Smith wrote: > On Sun, Oct 27, 2013 at 6:28 PM, Freddie Witherden > wrote: >> Hi all, >> >> This is a question which has been bugging me for a while. I have an (N, >> 3) array where N ~ 16 of points. These points are all unique and >> separated by a reasonable distan

Re: [Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Nathaniel Smith
On Sun, Oct 27, 2013 at 6:28 PM, Freddie Witherden wrote: > Hi all, > > This is a question which has been bugging me for a while. I have an (N, > 3) array where N ~ 16 of points. These points are all unique and > separated by a reasonable distance. > > I wish to sort these points into a canonica

[Numpy-discussion] Robust Sorting of Points

2013-10-27 Thread Freddie Witherden
Hi all, This is a question which has been bugging me for a while. I have an (N, 3) array where N ~ 16 of points. These points are all unique and separated by a reasonable distance. I wish to sort these points into a canonical order in a fashion which is robust against small perturbations. In o

[Numpy-discussion] diferences between frompyfunc & vectorize

2013-10-27 Thread Tim Michelsen
Hello, what are the differences between the two transformation functions frompyfunc & vectorize * http://docs.scipy.org/doc/numpy/reference/generated/numpy.vectorize.html * http://docs.scipy.org/doc/numpy/reference/generated/numpy.frompyfunc.html I cannot see the which one I shall prefer for what

Re: [Numpy-discussion] A context manager for print options

2013-10-27 Thread Nathaniel Smith
On 27 Oct 2013 09:02, "Neil Girdhar" wrote: > > Why not replace get_printoptions/set_printoptions with a context manager accessed using numpy.printoptions in the same way that numpy.errstate exposes a context manager to seterr/geterr? This would make the set method redundant. > > Also, the contex

[Numpy-discussion] A context manager for print options

2013-10-27 Thread Neil Girdhar
Why not replace get_printoptions/set_printoptions with a context manager accessed using numpy.printoptions in the same way that numpy.errstate exposes a context manager to seterr/geterr? This would make the set method redundant. Also, the context manager returned by numpy.errstate, numpy.printopt