On Mon, 2009-03-23 at 15:40 +0100, Sturla Molden wrote:
def fromaddress(address, nbytes, dtype=double):
class Dummy(object): pass
d = Dummy()
d.__array_interface__ = {
'data' : (address, False),
'typestr' : numpy.uint8.str,
'descr' : numpy.uint8.descr,
How does savetxt format a complex vector? How can I control it?
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Jens Rantil wrote:
Thanks Sturla. However numpy.uint8 seem to be lacking attributes 'str'
and 'descr'. I'm using installed Ubuntu package 1:1.1.1-1. Is it too old
or is the code broken?
Oops, my fault :)
def fromaddress(address, nbytes, dtype=float):
class Dummy(object): pass
d =
Hi all,
How can I extract the numbers from the following list
['', '-1.878722E-08,', '3.835992E-11',
'1.192970E-03,-5.080192E-06']
It is easy to extract
liste[1]
'-1.878722E-08,'
liste[2]
'3.835992E-11'
but
liste[3]
'1.192970E-03,-5.080192E-06'
How can I accomplish that ?
Nils
On Tue, Mar 24, 2009 at 10:14 AM, Nils Wagner
nwag...@iam.uni-stuttgart.de wrote:
Hi all,
How can I extract the numbers from the following list
['', '-1.878722E-08,', '3.835992E-11',
'1.192970E-03,-5.080192E-06']
It is easy to extract
liste[1]
'-1.878722E-08,'
liste[2]
'3.835992E-11'
Hi everyone,
I have been using NumPy for a couple of month now, as part of my research
project at the university. But now, I have to use a big C library I wrote
myself in a python project. So I choose to use SWIG for the interface
between both my python script and my C library. To make things
On Tue, 24 Mar 2009 10:27:18 -0400
josef.p...@gmail.com wrote:
On Tue, Mar 24, 2009 at 10:14 AM, Nils Wagner
nwag...@iam.uni-stuttgart.de wrote:
Hi all,
How can I extract the numbers from the following list
['', '-1.878722E-08,', '3.835992E-11',
'1.192970E-03,-5.080192E-06']
It is easy
Kevin,
You need to declare vecSum() *after* you %include numpy.i and use
the %apply directive. Based on what you have, I think you can just
get rid of the extern double vecSum(...). I don't see what purpose
it serves. As is, it is telling swig to wrap vecSum() before you have
set up
Hello,
I just performed an svn update, deleted my old build/ and
site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit
linux machine:
==
FAIL:
2009/3/24 Darren Dale dsdal...@gmail.com
Hello,
I just performed an svn update, deleted my old build/ and
site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit
linux machine:
==
FAIL:
On Tue, 24 Mar 2009 11:20:53 -0600
Charles R Harris charlesr.har...@gmail.com wrote:
2009/3/24 Darren Dale dsdal...@gmail.com
Hello,
I just performed an svn update, deleted my old build/
and
site-packages/numpy*, reinstalled, and I see a new test
failure on a 64 bit
linux machine:
2009/3/24 Charles R Harris charlesr.har...@gmail.com
2009/3/24 Darren Dale dsdal...@gmail.com
Hello,
I just performed an svn update, deleted my old build/ and
site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit
linux machine:
Dear Numpy Forum,
I have found the Win64 (Windows x64) Numpy MSI installer in Sourceforge
(numpy-1.3.0b1.win-amd64-py2.6.msi), but cannot find the Win32 (Windows i386)
one. I have tried unpacking the Win32 EXE installer package
(numpy-1.3.0b1-win32-superpack-python2.6.exe) to see if
Hello,
Sorry for any overlap, as I've been referred here from the scipi-dev
mailing list.
I was reading through the Summer of Code ideas and I'm terribly
interested in date/time proposal
(http://projects.scipy.org/numpy/browser/trunk/doc/neps/datetime-proposal3.rst).
I would love to work on this
On Wed, Mar 25, 2009 at 3:13 AM, F. David del Campo Hill
delca...@stats.ox.ac.uk wrote:
Dear Numpy Forum,
I have found the Win64 (Windows x64) Numpy MSI installer in
Sourceforge (numpy-1.3.0b1.win-amd64-py2.6.msi), but cannot find the Win32
(Windows i386) one. I have tried unpacking
Tue, 24 Mar 2009 13:15:21 -0400, Darren Dale wrote:
I just performed an svn update, deleted my old build/ and
site-packages/numpy*, reinstalled, and I see a new test failure on a 64
bit linux machine:
==
FAIL:
Hi,
I am trying to setup a new compiler for numpy and my lack of python
pattern matching syntax knowledge is bogging me down.
Here is one of my non-working patterns.
=
version_pattern = r'Pathscale(TM) Compiler Suite: Version (?
Pversion[^\s]*)'
Tue, 24 Mar 2009 15:11:05 -0400, Lewis E. Randerson wrote:
Hi,
I am trying to setup a new compiler for numpy and my lack of python
pattern matching syntax knowledge is bogging me down.
Here is one of my non-working patterns.
=
Puali,
I was wondering why the there seemed to be two uses for parens in the
string. I now have the braces in. The issue now I suspect is
the stuff after (?Pversion. That is where I am really confused.
Any opinions there.
--Lew
On Mar 24, 2009, at 3:32 PM, Pauli Virtanen wrote:
Tue, 24
On Tue, Mar 24, 2009 at 1:12 PM, Pauli Virtanen p...@iki.fi wrote:
Tue, 24 Mar 2009 13:15:21 -0400, Darren Dale wrote:
I just performed an svn update, deleted my old build/ and
site-packages/numpy*, reinstalled, and I see a new test failure on a 64
bit linux machine:
Tue, 24 Mar 2009 15:44:07 -0400, Lewis E. Randerson wrote:
Puali,
I was wondering why the there seemed to be two uses for parens in the
string. I now have the braces in. The issue now I suspect is the
stuff after (?Pversion. That is where I am really confused.
This is probably best
Puali,
Thanks. Somehow google failed me when I was looking for a
clear explanation.
--Lew
On Mar 24, 2009, at 3:55 PM, Pauli Virtanen wrote:
Tue, 24 Mar 2009 15:44:07 -0400, Lewis E. Randerson wrote:
Puali,
I was wondering why the there seemed to be two uses for parens in the
string. I
Hi,
The following is a list of files that have ^Ms in them.
I did an svn checkout of the latest stuff today and ran grep -Ril ^M * in
numpy and scipy
scipy seems to have more embedded feeds than numpy. It also seems that whatever
'builds' the files to be compiled in scipy is the thing that is
Hi all,
I'm having a seg fault error from numpy.rec.fromarrays.
I have a python list
L = [Col1, Col2]
where Col1 and Col2 are python lists of short strings (the max length of
Col1 strings is 4 chars and max length of Col2 is 7 chars). The len of Col1
and Col2 is about 11500.
Then I attempt
Mlabwrap allows pythonistas to interface to Matlab(tm) in a very
straightforward fashion:
from mlabwrap import mlab
mlab.eig([[0,1],[1,1]])
array([[-0.61803399],
[ 1.61803399]])
More at http://mlabwrap.sourceforge.net.
Mlabwrap 1.0.1 is just a maintenance release that
Sun, 22 Mar 2009 14:09:07 +0900, David Cournapeau wrote:
[clip]
You can backport as many docstring changes as possible, since there is
little chance to break anything just from docstring.
Merge to trunk is here:
http://projects.scipy.org/numpy/changeset/6725
I'll backport it and some
I have an array (porvatt.yarray) of ni*nj*nk values.
I want to create two further arrays.
activeatt.yarray is of size ni*nj*nk and is a pointer array to an active
cell number. If a cell is inactive then its activeatt.yarray value will be 0
ijkatt.yarray is of size nactive, the number of active
On Tue, Mar 24, 2009 at 18:29, Brennan Williams
brennan.willi...@visualreservoir.com wrote:
I have an array (porvatt.yarray) of ni*nj*nk values.
I want to create two further arrays.
activeatt.yarray is of size ni*nj*nk and is a pointer array to an active
cell number. If a cell is inactive
2009/3/24 Dan Yamins dyam...@gmail.com
Hi all,
I'm having a seg fault error from numpy.rec.fromarrays.
I have a python list
L = [Col1, Col2]
where Col1 and Col2 are python lists of short strings (the max length of
Col1 strings is 4 chars and max length of Col2 is 7 chars). The len of
Can someone explain why this might be happening, and how I can fix it
(without having to use the pickling hack)?
What architecture/operating system is this?
Sorry, I should have included this information before. it's OS 10.5.6. the
is a 64-bit intel core-2 duo, but the python is the
Robert Kern wrote:
On Tue, Mar 24, 2009 at 18:29, Brennan Williams
brennan.willi...@visualreservoir.com wrote:
I have an array (porvatt.yarray) of ni*nj*nk values.
I want to create two further arrays.
activeatt.yarray is of size ni*nj*nk and is a pointer array to an active
cell number.
On Wed, Mar 25, 2009 at 00:09, Brennan Williams
brennan.willi...@visualreservoir.com wrote:
Robert Kern wrote:
On Tue, Mar 24, 2009 at 18:29, Brennan Williams
brennan.willi...@visualreservoir.com wrote:
I have an array (porvatt.yarray) of ni*nj*nk values.
I want to create two further arrays.
32 matches
Mail list logo