Re: [Numpy-discussion] official binaries on web page.

2013-10-23 Thread jim vickroy
On 10/23/2013 8:51 AM, Chris Barker - NOAA Federal wrote: Ralf Gommers ralf.gomm...@gmail.com wrote: but the layout of that page is on purpose. scipy.org is split into two parts: (a) a SciPy Stack part, and (b) a numpy scipy library part. You're looking at the stack part, and the preferred

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-17 Thread Jim Vickroy
On 1/16/2013 11:41 PM, Nathaniel Smith wrote: On 16 Jan 2013 17:54, josef.p...@gmail.com mailto:josef.p...@gmail.com wrote: a = np.random.random_integers(0, 5, size=5) b = a.sort() b a array([0, 1, 2, 5, 5]) b = np.random.shuffle(a) b b = np.random.permutation(a) b

[Numpy-discussion] 2 greatest values, in a 3-d array, along one axis

2012-08-03 Thread Jim Vickroy
Hello everyone, I'm trying to determine the 2 greatest values, in a 3-d array, along one axis. Here is an approach: # -- # procedure to determine greatest 2 values for 3rd dimension of 3-d array ... import numpy, numpy.ma xcnt, ycnt, zcnt

Re: [Numpy-discussion] 2 greatest values, in a 3-d array, along one axis

2012-08-03 Thread Jim Vickroy
Thanks for each of the improved solutions. The one using argsort took a little while for me to understand. I have a long way to go to fully utilize fancy indexing! -- jv On 8/3/2012 10:02 AM, Angus McMorland wrote: On 3 August 2012 11:18, Jim Vickroy jim.vick...@noaa.gov mailto:jim.vick

Re: [Numpy-discussion] f2py with allocatable arrays

2012-07-03 Thread Jim Vickroy
On 7/2/2012 7:17 PM, Casey W. Stark wrote: Hi numpy. Does anyone know if f2py supports allocatable arrays, allocated inside fortran subroutines? The old f2py docs seem to indicate that the allocatable array must be created with numpy, and dropped in the module. Here's more background to

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-29 Thread Jim Vickroy
As a lurker and user, I too wish for a distinct numpy-users list. -- jv On 6/28/2012 1:42 PM, Matthew Brett wrote: Hi, On Thu, Jun 28, 2012 at 7:42 AM, Olivier Delalleau sh...@keba.be wrote: +1 for a numpy-users list without dev noise. Moderately strong vote against splitting the mailing

Re: [Numpy-discussion] Enum type

2012-01-03 Thread Jim Vickroy
On 1/3/2012 10:46 AM, Ognen Duzlevski wrote: Hello, I am playing with adding an enum dtype to numpy (to get my feet wet in numpy really). I have looked at the https://github.com/martinling/numpy_quaternion and I feel comfortable with my understanding of adding a simple type to numpy in

Re: [Numpy-discussion] Moving to gcc 4.* for win32 installers ?

2011-10-27 Thread Jim Vickroy
On 10/27/2011 7:02 AM, David Cournapeau wrote: Hi, I was wondering if we could finally move to a more recent version of compilers for official win32 installers. This would of course concern the next release cycle, not the ones where beta/rc are already in progress. Basically, the pros:

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-12 Thread Jim Vickroy
On 9/12/2011 11:17 AM, Jonathan T. Niehof wrote: Is anyone successfully using f2py and gfortran on a Windows machine without relying on cygwin? SpacePy uses mingw32 for both gcc and gfortran; I didn't have any trouble with f2py. I haven't tried a build with 64-bit Python or with EPD; I just

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-09 Thread Jim Vickroy
On 9/8/2011 10:44 AM, V. Armando Solé wrote: On 08/09/2011 16:16, Jim Vickroy wrote: On 9/8/2011 6:09 AM, V. Armando Solé wrote: Have you tried to install Visual Studio 2008 Express edition (plus the windows SDK to be able to compile 64 bit code)? Armando Armando, Visual Studio 2008

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-09 Thread Jim Vickroy
On 9/8/2011 5:56 AM, Jim Vickroy wrote: Hello All, I'm attempting to create a python wrapper, for a Fortran subroutine, using f2py. My system details are: sys.version '2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]' sys.getwindowsversion() (5, 1, 2600, 2

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-09 Thread Jim Vickroy
On 9/9/2011 11:46 AM, Christoph Gohlke wrote: On 9/9/2011 7:22 AM, Jim Vickroy wrote: On 9/8/2011 10:44 AM, V. Armando Solé wrote: On 08/09/2011 16:16, Jim Vickroy wrote: On 9/8/2011 6:09 AM, V. Armando Solé wrote: Have you tried to install Visual Studio 2008 Express edition (plus

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-09 Thread Jim Vickroy
On 9/9/2011 1:14 PM, Christoph Gohlke wrote: On 9/9/2011 11:43 AM, Jim Vickroy wrote: On 9/9/2011 11:46 AM, Christoph Gohlke wrote: On 9/9/2011 7:22 AM, Jim Vickroy wrote: On 9/8/2011 10:44 AM, V. Armando Solé wrote: On 08/09/2011 16:16, Jim Vickroy wrote: On 9/8/2011 6:09 AM, V. Armando

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-09 Thread Jim Vickroy
On 9/9/2011 1:59 PM, Christoph Gohlke wrote: On 9/9/2011 12:22 PM, Jim Vickroy wrote: On 9/9/2011 1:14 PM, Christoph Gohlke wrote: On 9/9/2011 11:43 AM, Jim Vickroy wrote: On 9/9/2011 11:46 AM, Christoph Gohlke wrote: On 9/9/2011 7:22 AM, Jim Vickroy wrote: On 9/8/2011 10:44 AM, V. Armando

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-08 Thread Jim Vickroy
. f2py was not finding the Intel compiler (f2py -c --help-fcompiler) so I tried gfortran. The Win64 reference, in the Exception, is puzzling to me since this is a 32-bit computer. On 08/09/2011 13:56, Jim Vickroy wrote: Hello All, I'm attempting to create a python wrapper, for a Fortran

Re: [Numpy-discussion] replace voids in 2d dat with nearest neighbour value

2009-04-06 Thread Jim Vickroy
Zachary Pincus wrote: Hi Christian, Check out this discussion from a little while ago on a very similar issue (but in 3d): http://www.nabble.com/Help-with-interpolating-missing-values-from-a-3D-scanner-td21489413.html Most of the suggestions should be directly applicable. Zach Hi

Re: [Numpy-discussion] puzzle: generate index with many ranges

2009-01-30 Thread Jim Vickroy
Raik Gruenberg wrote: Hi there, perhaps someone has a bright idea for this one: I want to concatenate ranges of numbers into a single array (for indexing). So I have generated an array a with starting positions, for example: a = [4, 0, 11] I have an array b with stop positions: b =

Re: [Numpy-discussion] puzzle: generate index with many ranges

2009-01-30 Thread Jim Vickroy
Raik Gruenberg wrote: Jim Vickroy wrote: Raik Gruenberg wrote: Hi there, perhaps someone has a bright idea for this one: I want to concatenate ranges of numbers into a single array (for indexing). So I have generated an array a with starting positions, for example: a = [4, 0, 11] I

Re: [Numpy-discussion] Alternative to record array

2008-12-29 Thread Jim Vickroy
Jean-Baptiste Rudant wrote: Hello, I like to use record arrays to access fields by their name, and because they are esay to use with pytables. But I think it's not very effiicient for what I have to do. Maybe I'm misunderstanding something. Example : import numpy as np age =

Re: [Numpy-discussion] Is it possible with numpy?

2008-12-24 Thread Jim Vickroy
olfa mraihi wrote: Hello Numpy community, I want to know if Numpy could deal with symbolic arrays and lists (by symbolic I mean without specifying the concrete contents of list or array) For example I want to solve a system of equations containing lists and arrays like this

Re: [Numpy-discussion] Unexpected MaskedArray behavior

2008-12-17 Thread Jim Vickroy
Ryan May wrote: Pierre GM wrote: On Dec 16, 2008, at 1:57 PM, Ryan May wrote: I just noticed the following and I was kind of surprised: a = ma.MaskedArray([1,2,3,4,5], mask=[False,True,True,False,False]) b = a*5 b masked_array(data = [5 -- -- 20 25], mask =

[Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Jim Vickroy
Hello, While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure. The problem (and a solution) was mentioned earlier at: * http://projects.scipy.org/pipermail/numpy-discussion/2006-December/024903.html There does not seem to be a formal

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Jim Vickroy
Travis E. Oliphant wrote: Jim Vickroy wrote: Hello, While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure. The problem (and a solution) was mentioned earlier at: * http://projects.scipy.org/pipermail/numpy-discussion/2006

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Jim Vickroy
Robert Kern wrote: On Mon, Nov 24, 2008 at 11:26, Jim Vickroy [EMAIL PROTECTED] wrote: Travis E. Oliphant wrote: Jim Vickroy wrote: Hello, While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure. The problem (and a solution