Re: [Numpy-discussion] sum of array for masked area

2013-11-28 Thread Scott Sinclair
On 28 November 2013 09:06, questions anon wrote: > I have a separate text file for daily rainfall data that covers the whole > country. I would like to calculate the monthly mean, min, max and the mean > of the sum for one state. > > I can get the max, min and mean for the state, but the mean of t

Re: [Numpy-discussion] f2py and setup.py how can I specify where the .so file goes?

2013-07-12 Thread Scott Sinclair
On 10 July 2013 17:50, Jose Gomez-Dans wrote: > Hi, > I am building a package that exposes some Fortran libraries through f2py. > The packages directory looks like this: > setup.py > my_pack/ > | > |-->__init__.py > |--> some.pyf > |---> code.f90 > > I thoughat that

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Scott Sinclair
On 9 May 2013 12:45, Robert Kern wrote: > On Thu, May 9, 2013 at 11:38 AM, Scott Sinclair > wrote: >> On 9 May 2013 12:21, Robert Kern wrote: >>> With master numpy (and back to 1.6.1, at least): >>> >>> [~] >>> |1> np.int32(3054212286) >>

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Scott Sinclair
On 9 May 2013 12:21, Robert Kern wrote: > With master numpy (and back to 1.6.1, at least): > > [~] > |1> np.int32(3054212286) > -1240755010 > > > It seems like at one time, this used to raise an OverflowError. We can > see this in at least one place in scipy: > > https://github.com/scipy/scipy/blo

Re: [Numpy-discussion] savez documentation flaw

2013-02-05 Thread Scott Sinclair
On 5 February 2013 10:38, Andreas Hilboll wrote: > I noticed that on > http://docs.scipy.org/doc/numpy/reference/generated/numpy.savez.html > there's a "see also" to a function numpy.savez_compressed, which doesn't > seem to exist (neither on my system nor in the online documentation). Seems like

Re: [Numpy-discussion] Fwd: numpy test fails with "Illegal instruction'

2013-01-17 Thread Scott Sinclair
On 17 January 2013 16:59, Gerhard Burger wrote: > Solved it, did a backtrace with gdb and the error came somewhere from an old > lapack version that was installed on my machine (I thought I wouldn't have > these issues in a virtualenv). but anyway after I removed it, and installed > numpy again, i

Re: [Numpy-discussion] Fwd: numpy test fails with "Illegal instruction'

2013-01-17 Thread Scott Sinclair
On 17 January 2013 12:01, Gerhard Burger wrote: > When I run `numpy.test(verbose=10)` it crashes with > > test_polyfit (test_polynomial.TestDocs) ... Illegal instruction > > In the FAQ it states that I should provide the following information > (running Ubuntu 12.04 64bit): > > os.name = '

Re: [Numpy-discussion] numpy.arrange not returning expected results (bug?)

2012-10-18 Thread Scott Sinclair
On 18 October 2012 03:34, Simon Lieschke wrote: > I've discovered calling numpy.arange(1.1, 17.1) and numpy(1.1, 16.1) both > return the same results. Could this be a numpy bug, or is there some > behaviour I'm possibly not aware of here? Not a bug, it's because you're using floating point argume

Re: [Numpy-discussion] Mysterious test_pareto failure on Travis

2012-09-04 Thread Scott Sinclair
On 4 September 2012 12:23, Matthew Brett wrote: > On Tue, Sep 4, 2012 at 11:15 AM, Nathaniel Smith wrote: >> The last two Travis builds of master have failed consistently with the >> same error: >> http://travis-ci.org/#!/numpy/numpy/builds >> It looks like a real failure -- we're getting the s

Re: [Numpy-discussion] unsubscribe

2012-08-22 Thread Scott Sinclair
On 23 August 2012 05:58, Amit Nagal wrote: > Please unsubscribe me You can unsubscribe at the bottom of this page http://mail.scipy.org/mailman/listinfo/numpy-discussion Cheers, Scott ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://

Re: [Numpy-discussion] how to uninstall numpy

2012-08-07 Thread Scott Sinclair
On 6 August 2012 20:07, Alex Clark wrote: > On 8/6/12 5:48 AM, Scott Sinclair wrote: >> On 6 August 2012 11:04, Petro wrote: >>> This is a general python question but I will ask it here. To >>> install a new numpy on Debian testing I remove installed version with >&

Re: [Numpy-discussion] how to uninstall numpy

2012-08-06 Thread Scott Sinclair
On 6 August 2012 11:04, Petro wrote: > This is a general python question but I will ask it here. To > install a new numpy on Debian testing I remove installed version with > "aptitude purge python-numpy" download numpy source code and install > numpy with "sudo python setup.py install". If I want

Re: [Numpy-discussion] numpy.complex

2012-07-18 Thread Scott Sinclair
On 18 July 2012 15:14, Molinaro Céline wrote: > Hello, > > In [2]: numpy.real(arange(3)) > Out[2]: array([0, 1, 2]) > In [3]: numpy.complex(arange(3)) > TypeError: only length-1 arrays can be converted to Python scalars I think you're looking for the dtype keyword to the ndarray constructor: imp

Re: [Numpy-discussion] "import numpy" performance

2012-07-10 Thread Scott Sinclair
On 10 July 2012 09:05, Andrew Dalke wrote: > On Jul 8, 2012, at 9:22 AM, Scott Sinclair wrote: >> On 6 July 2012 15:48, Andrew Dalke wrote: >>> I followed the instructions at >>> http://docs.scipy.org/doc/numpy/dev/gitwash/patching.html >>> and added Ticket

Re: [Numpy-discussion] "import numpy" performance

2012-07-08 Thread Scott Sinclair
On 6 July 2012 15:48, Andrew Dalke wrote: > I followed the instructions at > http://docs.scipy.org/doc/numpy/dev/gitwash/patching.html > and added Ticket #2181 (with patch) at > http://projects.scipy.org/numpy/ticket/2181 Those instructions need to be updated to reflect the current preferred pr

Re: [Numpy-discussion] Numpy regression in 1.6.2 in deducing the dtype for record array

2012-07-04 Thread Scott Sinclair
On 5 July 2012 08:10, Ralf Gommers wrote: > > > On Wed, Jul 4, 2012 at 10:56 PM, Sandro Tosi wrote: >> >> Hello, >> >> On Mon, Jul 2, 2012 at 7:58 PM, Sandro Tosi wrote: >> > Hello, >> > I'd like to point you to this bug report just reported to Debian: >> > http://bugs.debian.org/cgi-bin/bugrepo

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Scott Sinclair
On 11 May 2012 08:12, Fernando Perez wrote: > On Thu, May 10, 2012 at 11:03 PM, Scott Sinclair > wrote: >> Having thought about it, a page on the website isn't a bad idea. I've >> added a note pointing to this discussion. The document now appears at >> http:

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Scott Sinclair
On 11 May 2012 06:57, Travis Oliphant wrote: > > On May 10, 2012, at 3:40 AM, Scott Sinclair wrote: > >> On 9 May 2012 18:46, Travis Oliphant wrote: >>> The document is available here: >>>    https://github.com/numpy/numpy.scipy.org/blob/master/NA-overview.rs

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Scott Sinclair
On 9 May 2012 18:46, Travis Oliphant wrote: > The document is available here: >    https://github.com/numpy/numpy.scipy.org/blob/master/NA-overview.rst This is orthogonal to the discussion, but I'm curious as to why this discussion document has landed in the website repo? I suppose it's not a re

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Scott Sinclair
On 16 February 2012 17:31, Bruce Southey wrote: > On 02/16/2012 08:06 AM, Scott Sinclair wrote: >> This is not intended to downplay the concerns raised in this thread, >> but I can't help myself. >> >> I propose the following (tongue-in-cheek) patch against th

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Scott Sinclair
On 16 February 2012 15:08, Thomas Kluyver wrote: > It strikes me that the effort everyone's put into this thread could > have by now designed some way to resolve disputes. ;-) This is not intended to downplay the concerns raised in this thread, but I can't help myself. I propose the following (t

Re: [Numpy-discussion] Download page still points to SVN

2012-02-15 Thread Scott Sinclair
On 15 February 2012 15:30, Fernando Perez wrote: > On Wed, Feb 15, 2012 at 5:18 AM, Ognen Duzlevski wrote: >>> It looks like numpy.org already redirects to numpy.scipy.org. So I >>> think redirecting numpy.scipy.org to github should "do the right >>> thing" >> >> I can do this - can I assume ther

Re: [Numpy-discussion] Download page still points to SVN

2012-02-15 Thread Scott Sinclair
On 8 February 2012 00:03, Travis Oliphant wrote: > > On Feb 7, 2012, at 4:02 AM, Pauli Virtanen wrote: > >> Hi, >> >> 06.02.2012 20:41, Ralf Gommers kirjoitti: >> [clip] >>> I've created https://github.com/scipy/scipy.github.com and gave you >>> permissions on that. So with that for the built html

Re: [Numpy-discussion] Download page still points to SVN

2012-02-15 Thread Scott Sinclair
On 19 January 2012 00:44, Fernando Perez wrote: > On Wed, Jan 18, 2012 at 2:18 AM, Scott Sinclair > wrote: >> It's rather confusing having two websites. The "official" page at >> http://www.scipy.org/Download points to github. > > The problem is that th

Re: [Numpy-discussion] [ANN] new solver for multiobjective optimization problems

2012-02-10 Thread Scott Sinclair
On 10 February 2012 17:59, Neal Becker wrote: > And where do we find this gem? Presumably by following the hyper-links in the e-mail (non-obvious if you're using a plain-text mail client..) Cheers, Scott ___ NumPy-Discussion mailing list NumPy-Discussi

Re: [Numpy-discussion] Download page still points to SVN

2012-02-08 Thread Scott Sinclair
2012/2/8 Stéfan van der Walt : > On Tue, Feb 7, 2012 at 2:03 PM, Travis Oliphant wrote: >> John Turner at ORNL has the numpy.org domain and perhaps we could get him to >> point it to numpy.github.com > > Remember to also put a CNAME file in the root of the repository: > > http://pages.github.com/

Re: [Numpy-discussion] Download page still points to SVN

2012-02-06 Thread Scott Sinclair
On 6 February 2012 21:41, Ralf Gommers wrote: > > > On Mon, Feb 6, 2012 at 8:17 AM, Scott Sinclair > wrote: >> >> On 5 February 2012 13:07, Ralf Gommers >> wrote: >> > >> > Does it need to be a new repo, or would permissions on >> &

Re: [Numpy-discussion] Download page still points to SVN

2012-02-05 Thread Scott Sinclair
On 5 February 2012 13:07, Ralf Gommers wrote: > >> On 20/01/12 08:49, Scott Sinclair wrote: >> > On 19 January 2012 21:48, Fernando Perez  wrote: >> >> We've moved to the following setup with ipython, which works very well >> >> for us so far: >

Re: [Numpy-discussion] Download page still points to SVN

2012-01-19 Thread Scott Sinclair
On 19 January 2012 21:48, Fernando Perez wrote: > We've moved to the following setup with ipython, which works very well > for us so far: > > 1. ipython.org: Main website with only static content, manged as a > repo in github (https://github.com/ipython/ipython-website) and > updated with a gh-pag

Re: [Numpy-discussion] Download page still points to SVN

2012-01-18 Thread Scott Sinclair
On 19 January 2012 00:44, Fernando Perez wrote: > On Wed, Jan 18, 2012 at 2:18 AM, Scott Sinclair > wrote: >> It's rather confusing having two websites. The "official" page at >> http://www.scipy.org/Download points to github. > > The problem is that th

Re: [Numpy-discussion] Download page still points to SVN

2012-01-18 Thread Scott Sinclair
On 18 January 2012 11:22, Fernando Perez wrote: > I was just pointing a colleague to the 'official download page' for > numpy so he could find how to grab current sources: > > http://new.scipy.org/download.html > > but I was quite surprised to find that it still points to SVN for both > numpy and

Re: [Numpy-discussion] index the last several members of a ndarray

2011-10-18 Thread Scott Sinclair
On 18 October 2011 13:56, Chao YUE wrote: > but it's strange that if you use b[...,-1], > you get: > In [402]: b[...,-1] > Out[402]: array([ 9, 19]) > > if use b[...,-4:-1], > you get: > Out[403]: > array([[ 6,  7,  8], >    [16, 17, 18]]) That's because you're mixing two different indexing c

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

Re: [Numpy-discussion] Install error for numpy 1.6

2011-06-13 Thread Scott Sinclair
On 12 June 2011 21:08, Ralf Gommers wrote: > > On Sun, Jun 12, 2011 at 9:00 PM, Laurent Gautier wrote: >> >> I did not find the following problem reported. >> >> When trying to install Numpy 1.6 with Python 2.7.1+ (r271:86832), gcc >> 4.5.2, and pip 1.0.1 (through a virtualenv 1.4.2 Python) it fa

Re: [Numpy-discussion] git source datetime build error

2011-06-08 Thread Scott Sinclair
On 8 June 2011 17:27, Mark Wiebe wrote: > I've committed a fix for x86_64 as well now. Sorry for the breakage! Works for me. (numpy-master-2.7)scott@godzilla:~$ python -c "import numpy; numpy.test()" Running unit tests for numpy NumPy version 2.0.0.dev-76ca55f NumPy is installed in /home/scott/.

[Numpy-discussion] Problem installing Numpy in virtualenv

2011-06-01 Thread Scott Sinclair
Hi, This is a response to http://mail.scipy.org/pipermail/numpy-discussion/2011-April/055908.html A cleaner workaround that doesn't mess with your system Python (see https://github.com/pypa/virtualenv/issues/118) Activate the virtualenv mkdir $VIRTUAL_ENV/local ln -s $VIRTUAL_ENV/lib $VIRTUAL_EN

Re: [Numpy-discussion] Numpy question

2011-05-26 Thread Scott Sinclair
On 26 May 2011 10:37, Talla wrote: > C:\Python27> > In addition when I run import command I got ('import' is not recognized as > an internal or external command, operable program or batch file.) import is not a command you can run at your command line, it's part of Python. Do something like this

Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread Scott Sinclair
On 31 March 2011 12:18, Pearu Peterson wrote: > > > On Thu, Mar 31, 2011 at 1:00 PM, Scott Sinclair > wrote: >> >> For what it's worth, the maintenance/1.6.x branch works for me on 64-bit >> Ubuntu: >> >> (numpy-1.6.x)scott@godzilla:~$ python -c &qu

Re: [Numpy-discussion] [SciPy-Dev] ANN: Numpy 1.6.0 beta 1

2011-03-31 Thread Scott Sinclair
On 31 March 2011 11:37, Pearu Peterson wrote: > > > On Thu, Mar 31, 2011 at 12:19 PM, David Cournapeau > wrote: >> >> On Wed, Mar 30, 2011 at 7:22 AM, Russell E. Owen wrote: >> > In article >> > , >> >  Ralf Gommers wrote: >> > >> >> Hi, >> >> >> >> I am pleased to announce the availability of

Re: [Numpy-discussion] Willing to contribute to SciPy & NumPy ...

2011-03-31 Thread Scott Sinclair
On 31 March 2011 07:27, Sylvain Bellemare wrote: >  I would like to seriously start contributing to NumPy and/or SciPy, as much > as I possibly can. I'm sure that your help will be welcomed! A good place to get started is helping out with documentation (see http://docs.scipy.org/numpy/Front%20P

Re: [Numpy-discussion] Appending a numpy array to binary file

2011-03-23 Thread Scott Sinclair
On 22 March 2011 17:22, Robert Kern wrote: > On Tue, Mar 22, 2011 at 05:37, Alessandro > wrote: >> Hi everybody, >> >> I'm trying to append, inside a loop, into a binary file some arrays using >> >> numpy.save(file, arr) but wvhen I open it there is only the last array I >> saved. >> >> If I use

Re: [Numpy-discussion] When was the ddof kwarg added to std()?

2011-03-16 Thread Scott Sinclair
On 16 March 2011 14:52, Darren Dale wrote: > Does anyone know when the ddof kwarg was added to std()? Has it always > been there? Does 'git log --grep=ddof' help? Cheers, Scott ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.sc

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Scott Sinclair
On 25 February 2011 06:22, Algis Kabaila wrote: > On Friday 25 February 2011 14:44:07 Algis Kabaila wrote: > PS: a little investigation shows that my version of numpy is > 1.3.0 and scipy is 0.7.2 - so ubuntu binaries are way behind the > "bleeding edge"... ... and built for the system Python (2.

Re: [Numpy-discussion] Regrading Numpy Documentation ...

2010-11-15 Thread Scott Sinclair
On 15 November 2010 14:15, srinivas zinka wrote: > Thank you for the reply. > I just downloaded the following zip file: > http://docs.scipy.org/doc/numpy-1.5.x/numpy-html.zip > When I try to search for some thing (e.g., "array"), it keeps on > searching (see the attached file). > At the same time,

Re: [Numpy-discussion] Regrading Numpy Documentation ...

2010-11-15 Thread Scott Sinclair
On 15 November 2010 12:02, srinivas zinka wrote: > I downloaded the "Numpy reference guide" in HTML format from the following > link: > http://docs.scipy.org/doc/ > My intension is to use this documentation in "offline mode". > But, in offline mode,  I am unable to search the document using "quick

Re: [Numpy-discussion] Developmental version numbering with git

2010-11-09 Thread Scott Sinclair
On 8 November 2010 23:17, Matthew Brett wrote: >> Since the change to git the numpy version in setup.py is '2.0.0.dev' >> regardless because the prior numbering was determined by svn. >> >> Is there a plan to add some numbering system to numpy developmental version? >> >> Regardless of the answer,

Re: [Numpy-discussion] Trouble cloning numpy Github repo over HTTP

2010-11-09 Thread Scott Sinclair
On 30 September 2010 10:15, Scott Sinclair wrote: > I'm behind a firewall that doesn't allow me to use the git protocol so > I can't use the git:// URL. > > I see the following problem: > > $ git clone http://github.com/numpy/numpy.git numpy > Initialized

Re: [Numpy-discussion] Stop program when getting a warning (invalid value encountered in sqrt)

2010-11-09 Thread Scott Sinclair
2010/11/9 Jóan Petur Petersen : > I have write quite a large program, but I occationally get the following > warning message: > > Warning: invalid value encountered in sqrt > > Can I make the program stop instead of just giving a warning, so that I get > a traceback to where it comes from? I think

Re: [Numpy-discussion] Development workflow

2010-10-12 Thread Scott Sinclair
On 12 October 2010 11:58, David wrote: > On 10/12/2010 06:48 PM, Pierre GM wrote: >> >> Corollary: how do I branch from a branch ? > > You use the branch command: > > git branch target_branch source_branch > > But generally, if you want to create a new branch to start working on > it, you use the

Re: [Numpy-discussion] Trouble cloning numpy Github repo over HTTP

2010-09-30 Thread Scott Sinclair
On 30 September 2010 17:15, Aaron River wrote: > If you're allowed access to arbitrary https urls, try: > > git clone https://github.com/numpy/numpy.git numpy Thanks Aaron. I'm pretty sure I tried that and failed, but I'm at home now (no proxy) but will try again tomorrow. Looks like our proxy m

[Numpy-discussion] Trouble cloning numpy Github repo over HTTP

2010-09-30 Thread Scott Sinclair
Hi, I'm behind a firewall that doesn't allow me to use the git protocol so I can't use the git:// URL. I see the following problem: $ git clone http://github.com/numpy/numpy.git numpy Initialized empty Git repository in /home/scott/external_repos/numpy/.git/ error: RPC failed; result=22, HTTP co

Re: [Numpy-discussion] endian.h change

2010-07-30 Thread Scott Sinclair
>On 30 July 2010 19:08, Ralf Gommers wrote: > Commit r8541 broke building with numscons for me, does this fix look okay: > http://github.com/rgommers/numpy/commit/1c88007ab00cf378ebe19fbe54e9e868212c73d1 > > I am puzzled though why my endian.h is not picked up in the build - I have a > good collec

Re: [Numpy-discussion] Complex128

2010-07-19 Thread Scott Sinclair
>On 19 July 2010 10:23, Pauli Virtanen wrote: > Sun, 18 Jul 2010 21:15:15 -0500, Ross Harder wrote: > >> mac os x leopard 10.5.. >> EPD installed >> >> i just don't understand why i get one thing when i ask for another. i >> can get what i want, but only by not asking for it. > > Do you get the sa

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Scott Sinclair
>On 19 July 2010 16:53, Richard D. Moores wrote: > On Mon, Jul 19, 2010 at 07:38, Dave wrote: >> When you say you "do have one" I'm assuming that when you entered gcc at the >> command line you got the "gcc: no input files" error message back. In this >> case >> we need to tell python to use the

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Scott Sinclair
>On 19 July 2010 08:21, Richard D. Moores wrote: > If not now, when? http://mail.scipy.org/pipermail/numpy-discussion/2010-July/051436.html Cheers, Scott ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinf

Re: [Numpy-discussion] Function returns nothing!

2010-07-12 Thread Scott Sinclair
>On 12 July 2010 11:45, allan oware wrote: > Hi All! > > def height_diffs(): >     h = [] >     i = 0 >     while True: >     x = raw_input("Enter height difference ") >     if x == 'q': >     break >     else: >     h.append(x) >     i = i + 1 > >     m = asarr

Re: [Numpy-discussion] Newby question: best way to create a list of indices

2010-06-09 Thread Scott Sinclair
>On 9 June 2010 12:01, Hanlie Pretorius wrote: > I'm reading netCDF files using pupynere and I want to extract 22 > values from a 1440x400 array. I have the indices of the values, they > are: > > 92      832 > 92      833 > 91      832 > 91      833 ... > > What is the best way to store these indi

Re: [Numpy-discussion] numpy.savez does /not/ compress!?

2010-06-08 Thread Scott Sinclair
>2010/6/8 Hans Meine : > On Tuesday 08 June 2010 11:40:59 Scott Sinclair wrote: >> The savez docstring should probably be clarified to provide this >> information. > > I would prefer to actually offer compression to the user. In the meantime, I've edited the doc

Re: [Numpy-discussion] numpy.savez does /not/ compress!?

2010-06-08 Thread Scott Sinclair
>2010/6/8 Hans Meine : > I just wondered why numpy.load("foo.npz") was so much faster than loading > (gzip-compressed) hdf5 file contents, and found that numpy.savez did not > compress my files at all. > > But is that intended?  The numpy.savez docstring says "Save several arrays > into a single, *

Re: [Numpy-discussion] typo in docs

2010-06-08 Thread Scott Sinclair
>On 8 June 2010 09:46, Sebastian Haase wrote: > Hi, > > http://docs.scipy.org/doc/numpy/reference/arrays.dtypes.html#specifying-and-constructing-data-types > > says "f2" instead of "f1" > > Numarray introduced a short-hand notation for specifying the format of > a record as a comma-separated strin

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-17 Thread Scott Sinclair
>On 18 February 2010 05:30, Wayne Watson wrote: > >> On 2/16/2010 10:01 PM, Scott Sinclair wrote: >> >> Wayne - The DeprecationWarnings are being raised by SciPy, not by your >> code. You probably don't have a recent version of SciPy installed. The >>

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread Scott Sinclair
>On 17 February 2010 07:25, wrote: > On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson > wrote: >> Hi, I'm working on a 1800+ line program that uses tkinter. Here are the >> messages I started getting recently. (I finally figured out how to copy >> them.). The program goes merrily on its way despit

Re: [Numpy-discussion] Vector interpolation on a 2D grid (with realistic results)

2009-11-09 Thread Scott Sinclair
>2009/11/8 Pierre GM : > Chris, I gonna poke around and try to find some kriging algorithms. > I'll report in a few. In the meantime, if anybody has anythng already > implemented, please just let us know. A little late with the reply. I've used gstat (http://www.gstat.org/) in two ways 1) by runn

Re: [Numpy-discussion] documenting optional out parameter

2009-10-25 Thread Scott Sinclair
> 2009/10/26 Brent Pedersen : > hi, i've seen this section: > http://docs.scipy.org/numpy/Questions+Answers/#the-out-argument > > should _all_ functions with an optional out parameter have exactly that text? > so if i find a docstring with reasonable, but different doc for out, > should it be chang

Re: [Numpy-discussion] defmatrix move - new docstrings disappeared

2009-09-17 Thread Scott Sinclair
> 2009/9/17 Pauli Virtanen : > to, 2009-09-17 kello 18:19 +0200, Scott Sinclair kirjoitti: > [clip] >> It's probably important that the documentation patches should be >> committed pretty soon after being reviewed for obvious malicious code >> and marked &quo

Re: [Numpy-discussion] defmatrix move - new docstrings disappeared

2009-09-17 Thread Scott Sinclair
> 2009/9/17 Ralf Gommers : > After the recent move of the matrix module, all the changes to the docstrings > have disappeared from the doc wiki. Hmm.. http://article.gmane.org/gmane.comp.python.scientific.devel/9732 ;-) > I know it is quite a bit of work to do the merge. I remember Pauli saying

Re: [Numpy-discussion] memmap, write through and flush

2009-08-12 Thread Scott Sinclair
> 2009/8/12 Robert Kern : > On Sat, Aug 8, 2009 at 21:33, Tom Kuiper wrote: >> There is something curious here.  The second flush() fails.  Can anyone >> explain this? > > numpy.append() does not append values in-place. It is just a > convenience wrapper for numpy.concatenate(). Meaning that a cop

Re: [Numpy-discussion] identity

2009-08-12 Thread Scott Sinclair
>2009/8/12 Keith Goodman : > On Wed, Aug 12, 2009 at 7:24 AM, Keith Goodman wrote: >> On Wed, Aug 12, 2009 at 1:31 AM, Lars >> Bittrich wrote: >>> >>> a colleague made me aware of a speed issue with numpy.identity. Since he was >>> using numpy.diag(numpy.ones(N)) before, he expected identity to be

Re: [Numpy-discussion] strange sin/cos performance

2009-08-05 Thread Scott Sinclair
> 2009/8/5 Andrew Friedley : > >> Is anyone with this problem *not* running ubuntu? > > Me - RHEL 5.2 opteron: > > Python 2.6.1 (r261:67515, Jan  5 2009, 10:19:01) > [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 > > Fedora 9 PS3/PPC: > > Python 2.5.1 (r251:54863, Jul 17 2008, 13:25:23) > [GCC 4

Re: [Numpy-discussion] Doc-editor internal error

2009-08-01 Thread Scott Sinclair
Ignore the noise. Seems to be fixed now.. 2009/8/1 Scott Sinclair : > Hi, > > I'm seeing "500 Internal Error" at http://docs.scipy.org/numpy/stats/ > > Cheers, > Scott > ___ NumPy-Discussion mailing list NumPy-Discus

[Numpy-discussion] Doc-editor internal error

2009-08-01 Thread Scott Sinclair
Hi, I'm seeing "500 Internal Error" at http://docs.scipy.org/numpy/stats/ Cheers, Scott ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] String to integer array of ASCII values

2009-07-23 Thread Scott Sinclair
> 2009/7/23 David Goldsmith : > > --- On Thu, 7/23/09, Peter wrote: > >> I should have guessed that one. Why isn't numpy.fromstring >> listed with the >> other entries in the "From existing data" section here? > >> This looks like a simple improvement to the >> documentation... > > Yup, that it is

Re: [Numpy-discussion] Getting 95%/99% margin of ndarray

2009-07-23 Thread Scott Sinclair
> 2009/7/23 Pierre GM : > > On Jul 23, 2009, at 6:07 AM, Scott Sinclair wrote: > >>> 2009/7/22 Pierre GM : >>> You could try scipy.stats.scoreatpercentile, >>> scipy.stats.mstats.plottingposition or scipy.stats.mstats.mquantiles, >>> which wil

Re: [Numpy-discussion] Getting 95%/99% margin of ndarray

2009-07-23 Thread Scott Sinclair
> 2009/7/22 Pierre GM : > You could try scipy.stats.scoreatpercentile, > scipy.stats.mstats.plottingposition or scipy.stats.mstats.mquantiles, > which will all approximate quantiles of your distribution. It seems that mquantiles doesn't do what you'd expect when the limit keyword argument is speci

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-08 Thread Scott Sinclair
> 2009/7/8 Pierre GM : > > On Jul 8, 2009, at 3:18 AM, Scott Sinclair wrote: > >>> 2009/7/8 Robert Kern : >>> 2009/7/4 Stéfan van der Walt : >>>> Thanks, Scott.  This should now be fixed in SVN. >>> >>> You should probably change that

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-08 Thread Scott Sinclair
> 2009/7/8 Robert Kern : > 2009/7/4 Stéfan van der Walt : >> Thanks, Scott.  This should now be fixed in SVN. > > You should probably change that to asanyarray() before the masked > array crowd gets upset. :-) I hadn't thought about that, but I'm don't think it matters in this case. MaskedArray.no

Re: [Numpy-discussion] median object

2009-07-06 Thread Scott Sinclair
> 2009/7/7 keflavich : > > Hi, I want to be able to do something like: > > import numpy > x=numpy.array([1,4,4,6,7,3,4,2]) > x.median() > > rather than > numpy.median(x) > > so that in a function, I can call > x.median() > and allow x to be a masked array or a numpy array. > > Using the ma.median v

Re: [Numpy-discussion] assigning ma.masked. Strange behavior

2009-07-05 Thread Scott Sinclair
> 2009/7/4 Ben Park : > > import numpy as np > import numpy.ma as ma > > # There is no effect on the following assignment of ma.masked. > a1 = ma.arange(10).reshape((2,5)) > a1.ravel()[np.array([0,2,2])] = ma.masked In some situations ravel has to return a copy of the data instead of a view. You'r

Re: [Numpy-discussion] argwhere does not accept py list

2009-07-03 Thread Scott Sinclair
>2009/7/3 Sebastian Haase : > Hi, > should this not be accepted: N.argwhere([4,0,2,1,3]) > ? > instead I get > > Traceback (most recent call last): >  File "", line 1, in >  File "./numpy/core/numeric.py", line 510, in argwhere > AttributeError: 'list' object has no attribute 'nonzero' N

Re: [Numpy-discussion] Array resize question

2009-06-17 Thread Scott Sinclair
> 2009/6/16 Cristi Constantin > > Good day. > I have this array: > > a = array([[u'0', u'0', u'0', u'0', u'0', u' '], >    [u'1', u'1', u'1', u'1', u'1', u' '], >    [u'2', u'2', u'2', u'2', u'2', u' '], >    [u'3', u'3', u'3', u'3', u'3', u' '], >    [u'4', u'4', u'4', u'4', u'4',

Re: [Numpy-discussion] Question about memmap

2009-06-10 Thread Scott Sinclair
> 2009/6/10 David Goldsmith : > > --- On Wed, 6/10/09, Scott Sinclair wrote: > >> The front page of the Doc-Wiki says: >> >> "You do not need to be a SciPy developer to contribute, as >> any >> documentation changes committed directly to th

Re: [Numpy-discussion] Question about memmap

2009-06-10 Thread Scott Sinclair
> 2009/6/10 David Goldsmith : > > My present job - and the Summer Numpy Doc Marathon - is premised on making > changes/additions through the Wiki; if anyone other than registered > developers is to be messing w/ the rst, it's news to me.  At this point, > someone who knows should please step in

Re: [Numpy-discussion] f2py-problem fcompiler for f90-files missing

2009-04-07 Thread Scott Sinclair
> 2009/4/7 Tobias Lindberg : > Background: > I have installed the Python(xy) package (full) (numpy 1.2.1.2) both on my XP > and Vista machine. On both these machines I have VS2008 installed as well. > > Then I read that one could write like this; > > f2py -m test -c test.f90 --compiler=mingw32 > >

Re: [Numpy-discussion] Ticket mailing down?

2009-03-05 Thread Scott Sinclair
> 2009/3/6 Charles R Harris : > On Thu, Mar 5, 2009 at 10:47 PM, Scott Sinclair > wrote: >> >> > 2009/3/6 Charles R Harris : >> > I'm not receiving notifications of new/modified tickets. Anyone else >> > having >> > this problem? ... Chuck

Re: [Numpy-discussion] Ticket mailing down?

2009-03-05 Thread Scott Sinclair
> 2009/3/6 Charles R Harris : > I'm not receiving notifications of new/modified tickets. Anyone else having > this problem? ... Chuck I haven't seen anything since 3rd March. Cheers, Scott ___ Numpy-discussion mailing list Numpy-discussion@scipy.org htt

Re: [Numpy-discussion] NumPy SVN?

2009-03-04 Thread Scott Sinclair
> 2009/3/4 David Cournapeau : > Travis E. Oliphant wrote: >> Is commit to NumPy SVN still turned off?   How do I get a working SVN >> again? > > It is on - I could commit a few things 1-2 hours ago. If you still get > an administrative error message ("repo is read only ..."), it means you > are on

Re: [Numpy-discussion] Update webpage for python requirements for Numpy/SciPy

2009-02-20 Thread Scott Sinclair
> 2009/2/20 Pauli Virtanen : > Fri, 20 Feb 2009 08:34:06 +0200, Scott Sinclair wrote: > [clip] >> If someone can add a stub to the docs in SVN (patch attached for Numpy), >> I'm prepared to work on this. I can't see how to add pages in the >> doc-wiki... >

Re: [Numpy-discussion] Update webpage for python requirements for Numpy/SciPy

2009-02-19 Thread Scott Sinclair
> 2009/2/19 Jarrod Millman : > On Thu, Feb 19, 2009 at 1:24 PM, Bruce Southey wrote: >> Hi, >> Could someone please update the website to clearly state that numpy 1.2 >> requires Python 2.4 or later? >> I know it is in the release notes but that assumes people read them :-) >> > > It is extremely

Re: [Numpy-discussion] views and object lifetime

2009-02-18 Thread Scott Sinclair
> 2009/2/18 Neal Becker : > Matthieu Brucher gmail.com> writes: > >> >> B has a reference to A. > > Could you be more specific? Where is this reference stored? What C api > functions are used? I'm probably not qualified to be much more specific, these links should provide the necessary detail:

Re: [Numpy-discussion] loadtxt issues

2009-02-11 Thread Scott Sinclair
> 2009/2/12 A B : > Actually, I was using two different machines and it appears that the > version of numpy available on Ubuntu is seriously out of date (1.0.4). > Wonder why ... See the recent post here http://projects.scipy.org/pipermail/numpy-discussion/2009-February/040252.html Cheers, Scott

Re: [Numpy-discussion] porting NumPy to Python 3

2009-02-10 Thread Scott Sinclair
> 2009/2/10 James Watson : > I want to make sure diffs are against latest code, but keep getting > this svn error: > svn update > svn: OPTIONS of 'http://scipy.org/svn/numpy/trunk': Could not read > status line: Connection reset by peer (http://scipy.org) There is some problem at the moment. This

Re: [Numpy-discussion] Numpy 1.3 release date ?

2009-02-04 Thread Scott Sinclair
> 2009/2/4 David Cournapeau : > Scott Sinclair wrote: >> >> There are a bunch of documentation patches that should to be reviewed >> and applied to SVN before the release (especially those marked 'Needs >> review' or better). >> >> http://docs.s

Re: [Numpy-discussion] Error building numpy documentation

2009-02-04 Thread Scott Sinclair
> 2009/2/4 Nadav Horesh : > I just dowloads the latest numpy's svn version and tried to build its > documentation with > > $ make latex > > on the doc subdirectory, and got the following error message: > > writing... Sphinx error: > too many nesting section levels for LaTeX, at heading: > numpy.ma.

Re: [Numpy-discussion] Numpy 1.3 release date ?

2009-02-03 Thread Scott Sinclair
> 2009/2/4 David Cournapeau : > On Tue, Feb 3, 2009 at 11:49 PM, Pierre GM wrote: >> All, >> When can we expect numpy 1.3 to be released ? > > I think official 2.6 support (with binaries for the platforms where we > support binaries), x64 support and everything which has been done > already would

Re: [Numpy-discussion] minor improvment to ones

2009-01-30 Thread Scott Sinclair
> 2009/1/30 David Cournapeau : > Neal Becker wrote: >> A nit, but it would be nice if 'ones' could fill with a value other than 1. >> >> Maybe an optional val= keyword? > > What would be the advantage compared to fill ? I would guess ones and > zeros are special because those two values are special

Re: [Numpy-discussion] Documentation: objects.inv ?

2009-01-29 Thread Scott Sinclair
> 2009/1/29 Pierre GM : > Pauli, how often is the documentation on docs.scipy.org updated from > SVN ? My understanding is the following: SVN -> doc-wiki - updated once daily at around 10:00 (UTC?). doc-wiki -> SVN - infrequently, when someone applies one or more doc patches produced from the doc

Re: [Numpy-discussion] make latex in numpy/doc failed

2009-01-28 Thread Scott Sinclair
> 2009/1/27 Nils Wagner : > a make latex in numpy/doc failed with > > ... > > Intersphinx hit: PyObject > http://docs.python.org/dev/c-api/structures.html > writing... Sphinx error: > too many nesting section levels for LaTeX, at heading: > numpy.ma.MaskedArray.__lt__ > make: *** [latex] Fehler 1 >

Re: [Numpy-discussion] numpy.array and subok kwarg

2009-01-22 Thread Scott Sinclair
> 2009/1/22 Pierre GM : > Darren, > > >> The type returned by np.array is ndarray, unless I specifically set >> subok=True, in which case I get a MyArray. The default value of >> subok is True, so I dont understand why I have to specify subok >> unless I want it to be False. Is my subclass missing

Re: [Numpy-discussion] Help with interpolating missing values from a 3D scanner

2009-01-15 Thread Scott Sinclair
> 2009/1/16 Robert Kern : > On Thu, Jan 15, 2009 at 16:55, David Bolme wrote: >> >> I am working on a face recognition using 3D data from a special 3D >> imaging system. For those interested the data comes from the FRGC >> 2004 dataset. The problem I am having is that for some pixels the >> scan

Re: [Numpy-discussion] ndarray.resize method and reference counting

2009-01-13 Thread Scott Sinclair
Thanks for the help, Scott 2009/1/13 Stéfan van der Walt : > Hi Scott > > I can't reproduce the problem below. Would you please send a > self-contained snippet? > > Note that, in Python, "_" is a special variable that always points to > the last result. In IPy

  1   2   >