Re: [Numpy-discussion] PyPy guys deserve some help on micronumpy from you, numpy gurus!

2011-09-15 Thread Peter
y.org/ > best regards This may not be the best place to ask, but how should a python script (e.g. setup.py) distinguish between real NumPy and micronumpy? Or should I instead be looking to distinguish PyPy versus another Python implementation? Peter

Re: [Numpy-discussion] c-api return two arrays

2011-07-29 Thread Peter
B = mod.meth(C, prob=.95) > > is ith possible to return two arrays? > > best regards Yes, return a tuple of two elements. e.g. def make_range(center, spread): return center-spread, center+spread low, high = make_range(5,1) assert low == 4 assert high == 6 Peter

[Numpy-discussion] Scipy 2011 Convore thread now open

2011-07-12 Thread Peter Wang
be used to similarly good effect for the SciPy Cheers, Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] using the same vocabulary for missing value ideas

2011-07-06 Thread Peter
NORE and bitpattern vs mask are completely independent. Any >> combination of NA as bitpattern, NA as mask, IGNORE as bitpattern, and >> IGNORE as mask are reasonable. This point as I understood it is there is the semantics of the special values (not available vs ignore), and there is the im

Re: [Numpy-discussion] using the same vocabulary for missing value ideas

2011-07-06 Thread Peter
and products act with NA (since you do so for the IGNORE case). Thanks, Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Current status of 64 bit windows support.

2011-07-06 Thread Peter
here we have had users asking for 64bit installers. We need an official NumPy installer to build against. Regards, Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] np.histogram: upper range bin

2011-06-12 Thread Peter Butterworth
ition when using np.histogram(x): max(x) == top bin limit --- Re: [Numpy-discussion] np.histogram: upper range bin Christopher Barker Thu, 02 Jun 2011 09:19:16 -0700 Peter Butterworth wrote: > in np.histogram the top-most bin edge is inclusive of the upper range > limit. As documented in the doc

[Numpy-discussion] np.histogram: upper range bin

2011-06-02 Thread Peter Butterworth
ch *includes* 4. ''' -- thanks, peter butterworth ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] stable sort on a recarray ?

2011-03-29 Thread Peter Butterworth
is not mentioned on that page that lexsort is a stable sort. . no structured array / recarray example is given . it also states that "Structured arrays are sorted lexically by argsort", but fails to mention that the resulting sort is not stable. -- thanks, peter butterworth ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Anybody going to PyCon?

2011-03-10 Thread Peter Wang
I will be there tonight through Sunday night. I posted on Convore about a Visualization BoF, which may be of interest to folks in the numpy/scipy crowd: https://convore.com/pycon-2011/python-visualization-bof/ See you all there! -Peter On Mon, Mar 7, 2011 at 3:53 AM, Gökhan Sever wrote

Re: [Numpy-discussion] 64 bit Windows installers for NumPy?

2011-01-22 Thread Peter
On Sat, Jan 22, 2011 at 5:43 PM, Ralf Gommers wrote: > > On Sat, Jan 22, 2011 at 10:20 PM, Peter wrote: >> We're currently pointing people on 64 bit Windows towards Christoph >> Gohlke's unofficial builds. I'd be quite happy if Christoph's 64bit NumPy &g

Re: [Numpy-discussion] 64 bit Windows installers for NumPy?

2011-01-22 Thread Peter
On Sat, Jan 22, 2011 at 12:28 PM, Ralf Gommers wrote: > > On Wed, Jan 19, 2011 at 1:24 AM, Peter > wrote: >> >> On Tue, Jan 18, 2011 at 1:02 PM, Charles R Harris >> wrote: >> > I believe the problem has been been 64 bit fortran for ATLAS, the mingw >>

Re: [Numpy-discussion] 64 bit Windows installers for NumPy?

2011-01-18 Thread Peter
or official non-ATLAS binaries as a short term solution? I'm thinking also of 3rd party Python libraries that use NumPy, and if they/we can ship a win64 installer if NumPy doesn't. Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.

[Numpy-discussion] 64 bit Windows installers for NumPy?

2011-01-17 Thread Peter
Hi all, Are there plans to provide official 64bit Windows installers for NumPy? I'm aware that Christoph Gohlke had been able to do this, since he offers unofficial plain builds and MKL builds for NumPy here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ Regards,

Re: [Numpy-discussion] Is python 3 supported or not?

2011-01-13 Thread Peter
themselves compiled from source). Peter P.S. You forgot to reference the thread, for those that missed it see: http://mail.scipy.org/pipermail/numpy-discussion/2011-January/054486.html ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://

Re: [Numpy-discussion] numpy for jython

2010-12-23 Thread Peter
for Jython (just using pure Python) as long as it provided the basic data structures and some core functionality. I'm thinking here of other Python libraries that use NumPy, but don't necessarily need it for speed reasons alone. Peter ___ NumPy-Di

Re: [Numpy-discussion] savetxt to a string?

2010-12-22 Thread Peter
On Wed, Dec 22, 2010 at 1:53 PM, Neal Becker wrote: > > Peter wrote: > >> On Wed, Dec 22, 2010 at 1:08 PM, Neal Becker wrote: >>> >>> Is the formatting of savetxt available with a string as the destination? >>> >>> If not, shouldn't this

Re: [Numpy-discussion] savetxt to a string?

2010-12-22 Thread Peter
On Wed, Dec 22, 2010 at 1:08 PM, Neal Becker wrote: > > Is the formatting of savetxt available with a string as the destination? > > If not, shouldn't this functionality be factored out of savetxt? > Have you tried using a Str

Re: [Numpy-discussion] problem with a binary file on OS X 10.6

2010-11-04 Thread Peter
U which is little-endian. Is your Tiger (10.4) machine a PowerPC CPU? That would be big-endian, and therefore would write the floats to disk reversed compared to what a little-endian machine would expect. Peter ___ NumPy-Discussion mailing list Nu

Re: [Numpy-discussion] np.dtype(int) 64bit

2010-10-24 Thread Peter Butterworth
ion argmin() returns an index, which is implemented as 'Py_ssize_t' in C and is 64 bit on all 64 bit systems. -- Christoph -- thanks, peter butterworth ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] np.dtype(int) 64bit

2010-10-23 Thread Peter Butterworth
xpected result on 64 bit numpy is what I get on Ubuntu with np 2.0.0 dev : >>> np.dtype(int) dtype('int64') Could someone please confirm this ? -- thanks, peter butterworth ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Peter
n't get the very latest versions. > Having unpacked numpy and running the standard commnad in idle Could you clarify what you did? You don't just unpack the archive and use it as it - there is C code that must be compiled etc. Peter ___

[Numpy-discussion] DEV_README.txt update, SVN -> git

2010-10-07 Thread Peter
Just FYI: The DEV_README.txt file needs a trivial update to talk about git not SVN http://github.com/numpy/numpy/blob/master/DEV_README.txt Regards, Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman

[Numpy-discussion] mean of empty sequence gives nan

2010-09-27 Thread Peter Butterworth
In numpy 1.5.0, I got the following for mean of an empty sequence (or array): In [21]: mean([]) Warning: invalid value encountered in double_scalars Out[21]: nan Is this behaviour expected ? Also, would it be possible to have more explicit warning messages about the problem being related numpy

Re: [Numpy-discussion] unique 2d arrays

2010-09-21 Thread Peter Schmidtke
Hey Josef, I didn't stumble upon these posts. Thanks for the hint...it doesn't look very pythonic or matlab like still. This would be a nice thing to have a unique function that is able to take an axis argument. Cheers. Peter josef.p...@gmail.com wrote: > On Tue, Sep 21, 2010 at 2

[Numpy-discussion] unique 2d arrays

2010-09-20 Thread Peter Schmidtke
;d like to get this : [[409 152] [426 193] [431 129]] How can I do this without workarounds like string concatenation or such things? Numpy.unique flattens the whole array so it's not really of use here. Cheers. -- Peter Schmidtke PhD Student Dept. Physical Chemistry Faculty of Pharmac

Re: [Numpy-discussion] Silent DeprecationWarnings under Python 2.7 onwards

2010-09-17 Thread Peter
On Wed, Sep 15, 2010 at 3:34 PM, Benjamin Root wrote: > On Wed, Sep 15, 2010 at 8:28 AM, Ralf Gommers > wrote: >> >> >> On Fri, Sep 10, 2010 at 12:05 AM, Peter >>> http://docs.python.org/library/warnings.html#updating-code-for-new-versions-of-python >>>

[Numpy-discussion] Silent DeprecationWarnings under Python 2.7 onwards

2010-09-09 Thread Peter
code suddenly stops working. Potentially NumPy would have to introduce its own NumPy specific DeprecationWarning warning class, and use that. Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] floating point arithmetic issue

2010-07-30 Thread Peter
987 > > Is there any way to solve this? One simple way is to put brackets round the integer subtraction, >>> 0.001 + 1 - 1 == 0.001 False >>> 0.001 + (1 - 1) == 0.001 True However, in general comparing floating point numbers is tricky and a complex issue in numerical compu

Re: [Numpy-discussion] module compiled against ABI version 2000000 but this version of numpy is 1000009

2010-07-29 Thread Peter Schmidtke
On 29/07/2010, at 19:01, Pauli Virtanen wrote: > Thu, 29 Jul 2010 18:45:38 +0200, Peter Schmidtke wrote: >> I am trying to install manually the latest releases of scipy and numpy >> on Mac OSX 10.6 Snow Leopard. I previously used the dmg installer that >> is available, but

[Numpy-discussion] module compiled against ABI version 2000000 but this version of numpy is 1000009

2010-07-29 Thread Peter Schmidtke
should I use? I already use the newest release and I cannot go for the svn version as pycuda won't work as it should anymore. Thanks in advance for your lights on this. Peter Schmidtke - PhD Student Department of Physical Chemistry School of Pharmacy University of Barc

Re: [Numpy-discussion] segmentation fault when installing with pip and python2.7

2010-07-25 Thread Peter
umpy 1.4.x on PyPi which checks for Python 2.7 and aborts with a message suggesting waiting for NumPy 1.5.x or using Python 2.6 instead? Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Python 2.7 MSI installer for NumPy

2010-07-18 Thread Peter
"A release for python 2.7?", and the conclusion was we'd have to wait for Numpy 1.5, probably in August. Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] A release for python 2.7?

2010-07-10 Thread Peter
On Fri, Jul 9, 2010 at 4:27 PM, Christoph Gohlke wrote: > On 7/9/2010 7:11 AM, Peter wrote: >> I was going to ask if someone could build Windows installers for >> NumPy 1.4.1 on Python 2.7 (to facilitate 3rd party packages which >> use NumPy and want to support Python 2.7 o

Re: [Numpy-discussion] numpy, matplotlib and masked arrays

2010-07-10 Thread Peter Isaac
1.4.0. This leaves either the EPD or the combination of numpy 1.4.0/matplotlib 0.99.3 on Ubuntu. I've never tried installing from the source, maybe that's where it's heading. Cheers, Peter - Original Message - From: Pauli Virtanen Date: Saturday, July 10, 2010 7:03 pm

Re: [Numpy-discussion] numpy, matplotlib and masked arrays

2010-07-09 Thread Peter Isaac
John Hunter wrote: > On Fri, Jul 9, 2010 at 8:03 PM, Peter Isaac wrote: > >> Note that EPD-6.2-2 works fine with this script on WinXP. >> > > >> Any suggestions welcome >> > > then just use epd-6.2.2 on winxp. > >

[Numpy-discussion] numpy, matplotlib and masked arrays

2010-07-09 Thread Peter Isaac
-2 works fine with this script on WinXP. Any suggestions welcome and happy to supply further details if required. Yours in masked confusion, Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] A release for python 2.7?

2010-07-09 Thread Peter
the near > future? > > Thanks > > Jon Hi, I was going to ask if someone could build Windows installers for NumPy 1.4.1 on Python 2.7 (to facilitate 3rd party packages which use NumPy and want to support Python 2.7 on Windows). Thanks, Peter ___ Nu

Re: [Numpy-discussion] reading big-endian uint16 into array on little-endian machine

2010-06-17 Thread Peter
lement at a > time, but struct doesn't have an unpack_farray version like xdrlib > does.  I also thought of using the array module and .byteswap() but > the help says it only work on 4 and 8 byte arrays. I'm unclear if you want a numpy array or a standard library array, but can yo

[Numpy-discussion] 3d plane to point cloud fitting using SVD

2010-05-05 Thread Peter Schmidtke
get the a,b and c coefficients? Thanks in advance. -- Peter Schmidtke -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona ___ NumPy-Discussion

Re: [Numpy-discussion] Need faster equivalent to digitize

2010-04-14 Thread Peter Shinners
On 04/14/2010 11:34 PM, Nadav Horesh wrote: > import numpy as N > N.repeat(N.arange(len(a)), a) > >Nadav > > -Original Message- > From: numpy-discussion-boun...@scipy.org on behalf of Peter Shinners > Sent: Thu 15-Apr-10 08:30 > To: Discussion of Numeric

[Numpy-discussion] Need faster equivalent to digitize

2010-04-14 Thread Peter Shinners
I am using digitize to create a list of indices. This is giving me exactly what I want, but it's terribly slow. Digitize is obviously not the tool I want for this case, but what numpy alternative do I have? I have an array like np.array((4, 3, 3)). I need to create an index array with each inde

[Numpy-discussion] How to combine a pair of 1D arrays?

2010-04-14 Thread Peter Shinners
Is there a way to combine two 1D arrays with the same size into a 2D array? It seems like the internal pointers and strides could be combined. My primary goal is to not make any copies of the data. It might be doable with a bit of ctypes if there is not a native numpy call. >>> import numpy as

Re: [Numpy-discussion] how to tally the values seen

2010-04-14 Thread Peter Shinners
On 04/13/2010 11:44 PM, Gökhan Sever wrote: On Wed, Apr 14, 2010 at 1:34 AM, Warren Weckesser <mailto:warren.weckes...@enthought.com>> wrote: Gökhan Sever wrote: > > > On Wed, Apr 14, 2010 at 1:10 AM, Peter Shinners mailto:p...@shinners.or

[Numpy-discussion] how to tally the values seen

2010-04-13 Thread Peter Shinners
I have an array that represents the number of times a value has been given. I'm trying to find a direct numpy way to add into these sums without requiring a Python loop. For example, say there are 10 possible values. I start with an array of zeros. >>> counts = numpy.zeros(10, numpy.int) Now

Re: [Numpy-discussion] Name of the file associated with a memmap

2010-04-12 Thread Peter
On Mon, Apr 12, 2010 at 10:22 PM, Robert Kern wrote: > >Peter wrote: >> >> Why is the new property "filename" and not "name" to match >> the way the Python handle work? e.g. >> >>>>> handle = open("Documents/review.pdf")

Re: [Numpy-discussion] Name of the file associated with a memmap

2010-04-12 Thread Peter
me" to match the way the Python handle work? e.g. >>> handle = open("Documents/review.pdf") >>> handle.name 'Documents/review.pdf' I concede that "filename" is more explicit, but there is something to be said for consistency as well. Peter ___

[Numpy-discussion] f2py compiler version errors

2010-03-16 Thread Peter Brady
, '-xW', '-arch SSE2'] > object_switch = '-o ' > ranlib = ['ranlib'] > version = None > version_cmd = ['/opt/intel/Compiler/11.0/083/bin/intel64/ifort', '-FI > -V -c /tmp/tmpx6

Re: [Numpy-discussion] take not respecting masked arrays?

2010-03-01 Thread Peter Shinners
On 02/28/2010 10:58 PM, Pierre GM wrote: > On Mar 1, 2010, at 1:02 AM, Peter Shinners wrote: > >>> Here is the code as I would like it to work. >>> >> http://python.pastebin.com/CsEnUrSa >> >> >> import numpy as np >> >> v

Re: [Numpy-discussion] take not respecting masked arrays?

2010-02-28 Thread Peter Shinners
On 02/28/2010 08:01 PM, Pierre GM wrote: > On Feb 28, 2010, at 8:59 PM, Peter Shinners wrote: > >> I have a 2D masked array that has indices into a 1D array. I want to use >> some form of "take" to fetch the values into the 2D array. I've tried >> both

[Numpy-discussion] take not respecting masked arrays?

2010-02-28 Thread Peter Shinners
I have a 2D masked array that has indices into a 1D array. I want to use some form of "take" to fetch the values into the 2D array. I've tried both numpy.take and numpy.ma.take, but they both return a new unmasked array. I can get it working by converting the take results into a masked array a

Re: [Numpy-discussion] Want cumsum-like function

2010-02-25 Thread Peter Shinners
On 02/24/2010 11:48 PM, Friedrich Romstedt wrote: > 2010/2/25 Peter Shinners: > >> I want a function that works like cumsum, but starts at zero, instead of >> starting with the first actual value. >> >> [...] >> >> tallies = np.cumsum(initial_array) &

Re: [Numpy-discussion] Want cumsum-like function

2010-02-24 Thread Peter Shinners
On 02/24/2010 09:00 PM, Robert Kern wrote: > On Wed, Feb 24, 2010 at 22:53, Peter Shinners wrote: > >> I want a function that works like cumsum, but starts at zero, instead of >> starting with the first actual value. >> >> For example; I have an array with [4,3,3

[Numpy-discussion] Want cumsum-like function

2010-02-24 Thread Peter Shinners
I want a function that works like cumsum, but starts at zero, instead of starting with the first actual value. For example; I have an array with [4,3,3,1]. Cumsum will give me an array with [4,7,10,11]. I want an array that is like [0,4,7,8]. It looks like I could indirectly do this: tallies =

[Numpy-discussion] Python 2.6 and numpy 1.3.0/1.4.0 from an extension

2010-02-08 Thread Peter Notebaert
I have made an extension that also uses numpy. I developed with Python 2.6 and numpy 1.4.0 This works all fine. The problem is that users that use this extension get crahes from the moment they use the extension and this because of numpy. It crashes when numpy is initialised. This because those us

Re: [Numpy-discussion] Determine if numpy is installed from anextension

2010-02-03 Thread Peter Notebaert
endianness at runtime"); return -1; } #endif return 0; } As you can see, this routine is doing the same at the beginning with additional tests and the return value indicates if ok or not. So I only had to call PyErr_Clear(); when it failes and the problem is solved. Thanks for you

Re: [Numpy-discussion] Determine if numpy is installed from an extension

2010-02-03 Thread Peter Notebaert
0 and the error is probably still hanging and then given later. I will try this this evening. Thank you for the hints. Peter On Wed, Feb 3, 2010 at 4:22 PM, Robert Kern wrote: > On Wed, Feb 3, 2010 at 03:41, David Cournapeau wrote: > > On Wed, Feb 3, 2010 at 5:38 PM, Peter N

Re: [Numpy-discussion] Determine if numpy is installed from an extension

2010-02-03 Thread Peter Notebaert
>From an extension? How to import numpy from there and then test if that succeeded and that without any annoying message if possible... Thanks, Peter On Wed, Feb 3, 2010 at 1:34 AM, David Cournapeau wrote: > Peter Notebaert wrote: > > > How can I test if numpy is installed on

[Numpy-discussion] Determine if numpy is installed from an extension

2010-02-02 Thread Peter Notebaert
Hello, I have written a C-extension for python that uses arrays from python, does calculations on them and returns a result on that. I have now also added the possibility to provide numpy arrays. However this is not a requirement. Python arrays (lists) are still allowed also. I check in the C-

[Numpy-discussion] Python coders for Haiti disaster relief

2010-01-16 Thread Peter Clarke
nnie.m.wh...@gmail.com - *Web*: http://sahanapy.org/ - Please help if you can. -Peter Clarke ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] sphinx numpydoc fails due to no __init__ for class SignedType

2010-01-12 Thread Peter Caldwell
nd or I'm doing something wrong since the basic numpy documentation is created with sphinx! Suggestions? I'm using sphinx v1.0, numpy v1.3.0, and numpydoc v0.3.1on Redhat Enterprise 5.x. Big thanks, Peter ps - I'm sending this question to both Numpy-discussion and sphinx-...@googlegr

Re: [Numpy-discussion] How to solve homogeneous linear equations with NumPy?

2009-12-03 Thread Peter Cai
Thanks, I've read some explanations on wikipedia and finally found out how to solve homogeneous equations by singular value decomposition. On Thu, Dec 3, 2009 at 10:24 PM, Lou Pecora wrote: > From: Peter Cai > To: Discussion of Numerical Python > Sent: Thu, December 3, 2

Re: [Numpy-discussion] How to solve homogeneous linear equations with NumPy?

2009-12-02 Thread Peter Cai
Harris wrote: > > > On Wed, Dec 2, 2009 at 10:40 PM, Peter Cai wrote: > >> How to solve homogeneous linear equations with NumPy? >> >> >> >> If I have homogeneous linear equations like this >> >> array([[-0.75, 0.25, 0.25, 0.25], >>

[Numpy-discussion] How to solve homogeneous linear equations with NumPy?

2009-12-02 Thread Peter Cai
How to solve homogeneous linear equations with NumPy? If I have homogeneous linear equations like this array([[-0.75, 0.25, 0.25, 0.25], [ 1. , -1. , 0. , 0. ], [ 1. , 0. , -1. , 0. ], [ 1. , 0. , 0. , -1. ]]) And I want to get a non-zero solution for

Re: [Numpy-discussion] finding close together points.

2009-11-10 Thread Peter Schmidtke
they were different trees. > > This is slow, takes a bunch of memory, and I then have to parse out the > list to find the ones that are paired up. > > Is there a way to get just the close ones from the single tree? > > thanks, > > -Chris -- Peter Schmidtke -

Re: [Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Peter Schmidtke
5.5, 6.1, 3. , 5.5, 2. , 6.5]) You can reshape this array to a 3x3 matrix using the reshape function -> x.reshape((3,3)) -- Peter Schmidtke -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physi

[Numpy-discussion] numpy loadtxt - ValueError: setting an array element with a sequence.

2009-10-29 Thread Peter Schmidtke
Have you tried the numpy.fromfile function? This usually worked great for my files that had the same format than yours. ++ Peter -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona

[Numpy-discussion] reading gzip compressed files using numpy.fromfile

2009-10-29 Thread Peter Schmidtke
> Date: Wed, 28 Oct 2009 20:31:43 +0100 > From: Peter Schmidtke > Subject: [Numpy-discussion] reading gzip compressed files using > numpy.fromfile > To: numpy-discussion@scipy.org > Message-ID: > Content-Type: text/plain; charset="UTF-8" > > Dear Nump

[Numpy-discussion] reading gzip compressed files using numpy.fromfile

2009-10-28 Thread Peter Schmidtke
les are rather big, so I simply have to avoid this. Thanks in advance. -- Peter Schmidtke -- PhD Student at the Molecular Modeling and Bioinformatics Group Dep. Physical Chemistry Faculty of Pharmacy University of Barcelona

Re: [Numpy-discussion] [review] Easy win to improve numpy import times by 30 %

2009-10-09 Thread Peter
pect instead of numpy.lib.inspect to make it clear this new module is private? Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Pointer to array data for passing to swig-wrapped C++

2009-08-24 Thread Peter
he protocol by > reading it into a numpy array with a dtype matching the structure of > the data being sent, and calling, for example ... Have you considered using the Python struct module? If your "buffer of data" is a mixture of fields, this might b

[Numpy-discussion] ATLAS, NumPy and Threading

2009-08-08 Thread Peter Jeremy
. I have found that system_info.py explicitly selects threaded versions of libatlas and liblapack on FreeBSD but have been unable to find any rationale behind this in the available SVN logs. -- Peter Jeremy pgpwJhIADoJPB.pgp Description: PGP signature

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

2009-07-23 Thread Peter
other entries in the "From existing data" section here? http://docs.scipy.org/doc/numpy/reference/routines.array-creation.html This looks like a simple improvement to the documentation... Peter ___ NumPy-Discussion mailing list NumPy-Disc

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

2009-07-23 Thread Peter
of options to benchmark now :) Thank you, Peter ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

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

2009-07-23 Thread Peter
found this works: >>> numpy.frombuffer("ABCDEF", numpy.byte) array([65, 66, 67, 68, 69, 70], dtype=int8) But why don't these work too? >>> numpy.array("ABCDEF", numpy.byte) Traceback (most recent call last): ... ValueError: setting an array

[Numpy-discussion] branches/datetime

2009-07-22 Thread Peter Alexander
Hi all, I see life in a feature I've been dreaming about for years now. :-) I'm wondering how stable this branch is and if it's ready for playing with. I ask because I'm (once again) about to write an cython extension to process vectors of epochs and records of struct tm. Naturally, I'd love to be

Re: [Numpy-discussion] Scipy Conference 2009 Lecture Recordings

2009-07-17 Thread Peter Alexander
On Thu, Jul 16, 2009 at 6:39 PM, Gökhan SEVER wrote: > > > On Thu, Jul 16, 2009 at 4:30 PM, Fernando Perez wrote: > >> >> If someone has a camera that can do the recordings in a format that >> can then be directly recompressed at the command line with something >> like mencoder, that would be gre

Re: [Numpy-discussion] Scipy Conference 2009 Lecture Recordings

2009-07-16 Thread Peter Alexander
On Thu, Jul 16, 2009 at 11:32 AM, Gökhan SEVER wrote: > > > On Wed, Jul 15, 2009 at 10:29 PM, Peter Alexander wrote: > >> Hi all, >> >> I sure wish I was able to attend this year's event. >> I'm wondering, and really hoping, if/that the lectures wil

[Numpy-discussion] Scipy Conference 2009 Lecture Recordings

2009-07-15 Thread Peter Alexander
Hi all, I sure wish I was able to attend this year's event. I'm wondering, and really hoping, if/that the lectures will be recorded and then posted for the whole community's benefit? thanks, ~Peter ___ NumPy-Discussion mailing list N

Re: [Numpy-discussion] Problem with ML subscriptions?

2009-07-08 Thread Peter
27;t want me or there is some other problem. >> >> Anyway it seems impossible to reach the right people. >> > >> > I don't think I am able to help you here. Forwarding this to the ML, so >> > the list admins know. >> >> I've CC'd Pete

Re: [Numpy-discussion] Using loadtxt to read in mixed data types

2009-07-02 Thread Peter Kelley
sing tuples and a dictionary seemed to work as they should. Thanks again, -Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Using loadtxt to read in mixed data types

2009-07-02 Thread Peter Kelley
;, 'int'] I get TypeError: data type not understood, and I think it is because the event format is a list of strings not data types. Does anyone have know how to convert the list of strings into the data types for dtype. -Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] How to include numpy headers in C across versions 1.1, 1.2, and 1.3

2009-05-11 Thread Peter Wang
ppropriate headers for each version. Any help or suggestions would be appreciated! Thanks, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] [Announce] Numpy 1.3.0 rc1

2009-03-30 Thread Peter
e caching issue with the sourceforge mirror system? In the meantime I'll give the beta a go on Python 2.6 on my Windows XP machine... Thanks, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] [Announce] Numpy 1.3.0b1

2009-03-19 Thread Peter
or Itanium processors? I don't have one, nor am I likely to, but it just looked like a omission. http://projects.scipy.org/numpy/browser/trunk/numpy/core/include/numpy/npy_cpu.h Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Overlapping ranges

2009-03-16 Thread Peter Saffrey
e bins in that gene. If I split the problem into chromosomes, I feel sure there must be some super-fast matrix approach I can apply using numpy, but I'm struggling a bit. Can anybody suggest something? Peter ___ Numpy-discussion mailing list N

Re: [Numpy-discussion] numpy-svn mails

2009-03-06 Thread Peter Wang
cts.scipy.org/scipy/log/ Thanks for your patience, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Missing svn mailings?

2009-03-05 Thread Peter Wang
On Mar 5, 2009, at 1:16 PM, Charles R Harris wrote: > It looks like the new system is failing to mail svn commit > notifications... Chuck Thanks for the heads up; it should be fixed now. -Peter ___ Numpy-discussion mailing list Numpy-disc

Re: [Numpy-discussion] NumPy SVN?

2009-03-04 Thread Peter Wang
or message ("repo is read only ..."), it means > you > are on the old repo. > > cheers, > David Yeah, this is an Enthought-internal IT issue, which I will fix this morning as soon as I get in to the office. -Peter ___ Numpy-

Re: [Numpy-discussion] Proposed schedule for numpy 1.3.0

2009-03-03 Thread Peter Wang
t us know. Thanks for your patience, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] SVN and Trac servers are back up

2009-03-03 Thread Peter Wang
t; David Can you try again? I looked again and it looks like there are definitely some files that were not writeable by the Apache server. Thanks, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] SVN and Trac servers are back up

2009-03-03 Thread Peter Wang
mail.scipy.org/pipermail/. Again, this should be seemless, so if you experience any difficulties please let us know. Thanks, Peter, Stefan, and David ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman

Re: [Numpy-discussion] any news concerning numpy for python-2.6 on windows?

2009-01-15 Thread Peter
l transition from numpy 1.1 to numpy 1.3 as I'm sure there will be a few deprecations/API changes to deal with. Thanks, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numscons issues: numpy.core.umath_tests not built, built-in ld detection, MAIN__ not being set-up

2008-12-10 Thread Peter Norton
On Wed, Dec 10, 2008 at 12:59 AM, David Cournapeau <[EMAIL PROTECTED]> wrote: > Peter Norton wrote: >> I've got a few issues that I hope won't be overwhelming on one message: >> >> (1) Because of some issues in the past in building numpy with >> numscons,

[Numpy-discussion] Numscons issues: numpy.core.umath_tests not built, built-in ld detection, MAIN__ not being set-up

2008-12-09 Thread Peter Norton
. Doesn't this clearly indicate that a dummy main is needed? I'm working around this with a silly library that just has the MAIN__ symbol in it, but I'd love to do without that. Thanks, Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Problems building numpy on solaris 10 x86

2008-11-26 Thread Peter Norton
cal/python-2.5.1/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped ??? -Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.or

[Numpy-discussion] Problems building numpy on solaris 10 x86

2008-11-25 Thread Peter Norton
rors repeat themselves over and over including ignoreing missing SConscript, and no sconsign.dblite file, until the build bombs out. I've got numscons installed from pypi: >>> import numscons.version >>> numscons.version.VERSION '0.9.4' Can anyone get me on the righ

Re: [Numpy-discussion] creating a Numeric array from a numpy array LEAKS memory

2008-10-24 Thread Peter
(100): foo = Numeric.array(na_list, Numeric.Float) print sys.getrefcount(na) Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Need **working** code example of 2-D arrays

2008-10-13 Thread Peter Wang
discussion, even the veterans don't go about making proclamations about what people should and should not post... I think if you stick to asking technical questions, people will respond in kind. -Peter ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Installation of Numerical Python

2008-10-11 Thread Peter
#older_array and http://www.scipy.org/History_of_SciPy For the actual numpy documentation, see the links on http://www.scipy.org/Documentation I hope any frustration getting numpy installed and working is short lived, and wish you good luck with your work. Peter _

<    1   2   3   >