Re: [Numpy-discussion] Advise for numerical programming content (New python user)

2010-11-18 Thread srinivas zinka
For a beginner, I think "pythonxy" is a good option. Then you don't have to worry about the compatibility issue. http://www.pythonxy.com/ and as for the plotting, you can use the following packages: 2D - Matplotlib or Gnuplot (both are good ... but, if you want Matlab kind of environment, try Matp

Re: [Numpy-discussion] Advise for numerical programming content (New python user)

2010-11-18 Thread Sachin Kumar Sharma
Thanks Alan, Best regards Sachin Sachin Kumar Sharma Senior Geomodeler -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Alan G Isaac Sent: Frid

Re: [Numpy-discussion] Advise for numerical programming content (New python user)

2010-11-18 Thread Alan G Isaac
On 11/18/2010 9:48 PM, Sachin Kumar Sharma wrote: > Does graphic output like maps, histogram, crossplot, tornado charts is good > enough with basic installation or needs some additional packages? For the graphics, you should probably first consider Matplotlib. For your other questions, perhaps l

[Numpy-discussion] Advise for numerical programming content (New python user)

2010-11-18 Thread Sachin Kumar Sharma
Users, I am an average Fortran user. I am new to python and I am currently evaluating options and functionalities of numerical programming and related 2d and 3d graphic outputs with python. Kindly share your experience in scientific programming with python like how do you like it, comparison

Re: [Numpy-discussion] Test failures on 2.6

2010-11-18 Thread Pierre GM
On Oct 5, 2008, at 10:53 PM, T J wrote: > Hi, > > I'm getting a couple of test failures with Python 2.6, Numpy 1.2.0, Nose > 0.10.4: Wow, 1.2.0 ? That's fairly ancient. I gather the bugs in numpy.ma have been corrected since (they don't really look familiar, though). And with a more recent n

Re: [Numpy-discussion] Test failures on 2.6

2010-11-18 Thread W Bradley Knox
I'm having almost exactly the same problem, but with Python 2.6.1, Numpy 1.2.1, and Nose 0.11.3. Nobody responded to TJ the first time around, so any advice would be greatly appreciated. Thanks, Brad -- From: T J gmail.com> Subj

Re: [Numpy-discussion] How to import input data to make ndarray for batch processing?

2010-11-18 Thread Lutz Maibaum
On Nov 18, 2010, at 6:49 AM, Venkat wrote: > I am trying to reshape my text data which is in one single column (10,000 > rows). > I want the data to be in 100x100 array form. If all you want to do is converting the actual files, and you are using a unix-ish operating system, you don't even need

Re: [Numpy-discussion] How to import input data to make ndarray for batch processing?

2010-11-18 Thread Christopher Barker
On 11/18/10 7:40 AM, Dave Hirschfeld wrote: > In [7]: data = np.loadtxt('dummy_data.txt') or, faster: data = np.fromfile('dummy_data.txt', dtype=np.float64, sep = ' ') fromfile() is not very flexible, and doesn't have good error handling, but it's a lot faster than loadtxt for the simple cases

Re: [Numpy-discussion] Returning numpy scalars in cython functions

2010-11-18 Thread Keith Goodman
On Thu, Nov 18, 2010 at 10:08 AM, Francesc Alted wrote: > A Thursday 18 November 2010 18:51:04 Keith Goodman escrigué: >> What's the best way to make it return a numpy long int, or whatever >> it is called, that has dtype, ndim, size, etc. class methods? The >> only thing I could come up with is

Re: [Numpy-discussion] Returning numpy scalars in cython functions

2010-11-18 Thread Francesc Alted
A Thursday 18 November 2010 19:08:00 Francesc Alted escrigué: > >>> type(np.int_(2)) Err, for maximum portability you can use the int64 constructor: >>> type(np.int64(2)) Cheers, -- Francesc Alted ___ NumPy-Discussion mailing list NumPy-Discussion@s

Re: [Numpy-discussion] Returning numpy scalars in cython functions

2010-11-18 Thread Francesc Alted
A Thursday 18 November 2010 18:51:04 Keith Goodman escrigué: > The cython function below returns a long int: > > @cython.boundscheck(False) > def mysum(np.ndarray[np.int64_t, ndim=1] a): > "sum of 1d numpy array with dtype=np.int64." > cdef Py_ssize_t i > cdef int a

[Numpy-discussion] Returning numpy scalars in cython functions

2010-11-18 Thread Keith Goodman
The cython function below returns a long int: @cython.boundscheck(False) def mysum(np.ndarray[np.int64_t, ndim=1] a): "sum of 1d numpy array with dtype=np.int64." cdef Py_ssize_t i cdef int asize = a.shape[0] cdef np.int64_t asum = 0 for i in range(a

[Numpy-discussion] numpy + amdlibm?

2010-11-18 Thread Neal Becker
Anyone tried building numpy with amdlibm? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] How to import input data to make ndarray for batch processing?

2010-11-18 Thread Fabrice Silva
El jeu., 18-11-2010 a las 20:19 +0530, Venkat escribió: > I have many files to convert like this. All of them are having file > names like 0, 1, 2, 500. with out any extension. > Actually, I renamed actual files so that I can import them in Matlab > for batch processing. Since Matlab also new f

Re: [Numpy-discussion] How to import input data to make nda rray for batch processing?

2010-11-18 Thread Dave Hirschfeld
Venkat gmail.com> writes: > > Hi All,I am new to Numpy (also Scipy).I am trying to reshape my text data which is in one single column (10,000 rows).I want the data to be in 100x100 array form.I have many files to convert like this. All of them are having file names like 0, 1, 2, 500. with ou

Re: [Numpy-discussion] How to import input data to make ndarray for batch processing?

2010-11-18 Thread Nadav Horesh
Do you want to save the file to disk as 100x100 matrices, or just to read them into the memory? Are the files in ascii or binary format? Nadav From: numpy-discussion-boun...@scipy.org [numpy-discussion-boun...@scipy.org] On Behalf Of Venkat [dvr...@gmai

[Numpy-discussion] How to import input data to make ndarray for batch processing?

2010-11-18 Thread Venkat
Hi All, I am new to Numpy (also Scipy). I am trying to reshape my text data which is in one single column (10,000 rows). I want the data to be in 100x100 array form. I have many files to convert like this. All of them are having file names like 0, 1, 2, 500. with out any extension. Actually,