[Numpy-discussion] Adding the Linux Wheels for old releases breaks builds

2016-04-25 Thread Christian Aichinger
atters Christian Aichinger • IT A-1220 Wien • Donau-City-Straße 11 • Tel +43 1 263 11 22 • Fax +43 1 263 11 22 219 caichin...@ubimet.com • www.ubimet.com ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/li

[Numpy-discussion] building NumPy with gcc if Python was built with icc?!?

2016-02-16 Thread BERGER Christian
customers. Thanks for your help, Christian This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should

Re: [Numpy-discussion] Problems using add_npy_pkg_config

2015-08-14 Thread Christian Engwer
brain damage.``, you're usually in trouble. what a pity... do you have an alternative suggestion? Is there a good alternative, e.g. using cmake, to distribute python modules? Ciao Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Problems using add_npy_pkg_config

2015-08-13 Thread Christian Engwer
file. ... and concerning cmake, yes we tried this as well, but using cmake to distribute the python code is also a pita ;-) ... Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Problems using add_npy_pkg_config

2015-08-12 Thread Christian Engwer
to adopt parts of the numpy setup, but these use sub-modules, which I don't need... might this the the cause of my problems? Any help is highly appreciated ;-) Cheers Christian int foo() { return 10; } [meta] Name=@foo@ Version=1.0 Description=dummy description [default] Cflags=-I@prefix@/include

Re: [Numpy-discussion] Second order gradient in numpy

2014-05-01 Thread Christian K.
for the derivative rather than the gradient. Have a look at: np.diff(a, n=1, axis=-1) n is the order if the derivative. Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-12 Thread Christian K.
Am 10.11.13 23:27, schrieb Charles R Harris: On Sun, Nov 10, 2013 at 5:12 PM, Christian K. ckk...@hoc.net mailto:ckk...@hoc.net wrote: Am 10.11.13 21:06, schrieb Christian K.: Am 03.11.13 13:42, schrieb Julian Taylor: Hi all, I'm happy to announce the release

Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-10 Thread Christian K.
installers are available. OS X installer will follow soon. On OSX compilation succeeds (with some errors though) but test() fails. Attached is the full output. Christian Python 2.7.5 |Anaconda 1.6.1 (x86_64)| (default, Jun 28 2013, 22:20:13) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type

Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-10 Thread Christian K.
Am 10.11.13 21:06, schrieb Christian K.: Am 03.11.13 13:42, schrieb Julian Taylor: Hi all, I'm happy to announce the release candidate of Numpy 1.7.2. This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3. More than 37 issues were fixed, the most important issues

Re: [Numpy-discussion] ANN: 1.8.0b2 release.

2013-09-14 Thread Christian K.
Fortran (GCC) 4.2.3 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Should I use another compiler? Regards, Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] Setter on array

2013-08-16 Thread Christian K.
(object_state) def __setstate__(self,state): nd_state, own_state = state N.ndarray.__setstate__(self,nd_state) cb, = own_state self.cb = cb Regards, Christian ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] Random number generation and testing across different OS's.

2013-04-25 Thread Christian K.
of curiosity I would like to know for what type of problems/models you need DE or why do you think it is superior to gradient based minimizers? Btw., are you aware of ecspy (https://code.google.com/p/ecspy/)? I used it same years ago and found it very powerful. Regards, Christian

Re: [Numpy-discussion] 3d ODR

2011-06-17 Thread Christian K .
Robert Kern robert.kern at gmail.com writes: On Thu, Jun 16, 2011 at 06:28, Christian K. ckkart at hoc.net wrote: Hi, I need to do fit a 3d surface to a point cloud. This sounds like a job for 3d orthogonal distance regression. Does anybody know of an implementation? As eat points

[Numpy-discussion] 3d ODR

2011-06-16 Thread Christian K .
Hi, I need to do fit a 3d surface to a point cloud. This sounds like a job for 3d orthogonal distance regression. Does anybody know of an implementation? Regards, Christian K. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

[Numpy-discussion] fast robus implementation of float()

2011-03-22 Thread Christian K.
is in the Mb range. Regards, Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] float conversion

2011-01-16 Thread Christian K.
probably returns None. Show us your code and we will able to help. Regards, Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] bug in ceil()

2010-10-06 Thread Christian Fischer
[66]: -1.0 In [67]: np.ceil(-0.734) Out[67]: -0 In [68]: np.ceil(-0.256) Out[68]: -0 In [69]: np.ceil(-0.0) Out[69]: -0 In [70]: np.ceil(0.2) Out[70]: 1.0 Best wishes Christian -- Dipl.-Ing. Christian Fischer Institute of Engineering and Computational Mechanics (name in German

Re: [Numpy-discussion] Sine Distribution on a 2D Array

2010-07-25 Thread Christian K.
the height field. In [5]: import numpy as N In [6]: x,y = N.mgrid[-N.pi/2.0:N.pi/2.0:100j,-N.pi/2.0:N.pi/2.0:100j] In [7]: z = N.sin(N.sqrt(x**2+y**2)) Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman

[Numpy-discussion] Sun Studio Compilers on Linux / atan2 regression

2010-02-17 Thread Christian Marquardt
this in the numpy-Trac, but registration didn't work (I was asked for another username/password at scipy.org during the registration process) :-(( Thanks, Christian. diff -r -C5 numpy-1.4.0.orig/numpy/core/src/private/npy_config.h numpy-1.4.0/numpy/core/src/private/npy_config.h *** numpy-1.4.0.orig

[Numpy-discussion] matlab for numpy users

2009-09-17 Thread Christian K .
= linspace(0,1,101) res = a*exp(-time[:,newaxis,newaxis]) Thanks in advance, Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] question about future support for python-3

2009-09-08 Thread Christian Heimes
. The PSF might (!) even donate some money but I'm not in the position to discuss it. I can get you in touch with the PSF if you like. I'm a PSF member and a core developer. Christian ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] switching to float32

2009-06-26 Thread Christian K .
? Possibly not the nicest way, but np.float64 = np.float32 somewhere at the beginning should work. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] switching to float32

2009-06-26 Thread Christian K.
Robert Kern schrieb: On Fri, Jun 26, 2009 at 03:39, Christian K.ckk...@hoc.net wrote: John Schulman joschu at caltech.edu writes: I'm trying to reduce the memory used in a calculation, so I'd like to switch my program to float32 instead of float64. Is it possible to change the numpy default

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

2009-04-06 Thread Christian K .
extends over some adjacent coordinates. Currently I am using tmp = N.ma.array(tmp, tmpthreshold) data[tmp.mask] = tmp.mean() which moves the voids closer to the mean value but which is still far from beeing a smooth interpolation. Regards, Christian

Re: [Numpy-discussion] Numpy v1.3.0b1 on Linux w/ Intel compilers - unknown file type

2009-03-29 Thread Christian Marquardt
They are, also in v1..3.0rc1 Many thanks! Christian - Charles R Harris charlesr.har...@gmail.com wrote: 2009/3/27 Christian Marquardt christ...@marquardt.sc Error messages? Sure;-) python -c 'import numpy; numpy.test()' Running unit tests for numpy NumPy version

[Numpy-discussion] Command line args for the Intel compilers (32 bit)

2009-03-29 Thread Christian Marquardt
). Hope this is useful, Christian. diff -r -C3 -N numpy-1.3.0rc1.orig/numpy/distutils/fcompiler/intel.py numpy-1.3.0rc1/numpy/distutils/fcompiler/intel.py *** numpy-1.3.0rc1.orig/numpy/distutils/fcompiler/intel.py 2009-03-24 06:54:52.0 +0100 --- numpy-1.3.0rc1/numpy/distutils/fcompiler

Re: [Numpy-discussion] Numpy v1.3.0b1 on Linux w/ Intel compilers - unknown file type

2009-03-27 Thread Christian Marquardt
Christian Marquardt christ...@marquardt.sc Oh sorry - you are right (too late in the night here in Europe). The output is similar in all four cases - it looks like AssertionError: Arrays are not almost equal (mismatch 100.0%) x: array([ 4.60555124+0.j, -2.60555124+0.j], dtype

Re: [Numpy-discussion] Numpy v1.3.0b1 on Linux w/ Intel compilers - unknown file type

2009-03-27 Thread Christian Marquardt
Hi David, I *guess* that the compiler command line does not work with your changes, and that distutils got confused, and fails somewhere later (or sooner, who knows). Without actually seeing the errors you got, it is difficult to know more - but I would make sure the command line arguments

[Numpy-discussion] Numpy v1.3.0b1 on Linux w/ Intel compilers - unknown file type

2009-03-26 Thread Christian Marquardt
come from the compiler... I'm lost... What does it mean, and why are there source files named ...c.src? Many thanks, Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Numpy 1.3.0b1 with Intel compiler

2009-03-26 Thread Christian Marquardt
come from the compiler... I'm lost... WHat does it mean, and why are there source files named ...c.src? Many thanks, Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy v1.2.0 vs 1.2.1 and setup_tools

2009-03-26 Thread Christian Marquardt
other packages which are only available there (e.g., scipy or netCDF4 if specified as a requirement for the install... strange. It also doesn't seem to work for tables (2.1, so not the newest version)). Any ideas on what might be going on? Thanks a lot, Christian. - Christian Marquardt

Re: [Numpy-discussion] Numpy v1.3.0b1 on Linux w/ Intel compilers - unknown file type

2009-03-26 Thread Christian Marquardt
: 2009/3/26 Christian Marquardt christ...@marquardt.sc Hmm. I downloaded the beta tar file and started from the untarred contents plus a patch for the Intel compilers (some changes of the command line arguments for the compiler and a added setup.cfg file specifying the paths

Re: [Numpy-discussion] parallel compilation of numpy

2009-02-18 Thread Christian Heimes
without much work and without complex dependency analysis. Do you see a possible pit fall? I don't. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] A buildbot farm with shell access - for free ?

2009-01-29 Thread Christian Heimes
(probably Python.org) eventually. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Win64 build?

2008-12-14 Thread Christian Heimes
does not work well yet for 64 bits. The offical Windows builds of Python 2.5 are created with Visual C 7.1 (also known as VS2003). You can compile an extension with VS 2005 but that will cause trouble. Christian ___ Numpy-discussion mailing list Numpy

[Numpy-discussion] [EMAIL PROTECTED]

2008-11-05 Thread Christian K.
Hallo Nina, ich huete gerade meinen kranken Sohn, wollte aber nicht versaeumen, Platten zu reservieren: Januar bis einschliesslich Juni 2009 haette ich gerne 2 Platten pro Monat gruesse, Christian ___ Numpy-discussion mailing list Numpy-discussion

Re: [Numpy-discussion] [EMAIL PROTECTED]

2008-11-05 Thread Christian K.
darn! How could I be that stupid... Please ignore the last message. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] np.nan and ``is``

2008-09-19 Thread Christian Heimes
APIs for floats. Hope to shed some light on things Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] floating point char - bug?

2008-08-31 Thread Christian K.
ending with '.0' where the point has not been replaced. I guess this is a bug. In fact I do not like the idea that repr() of a numpy float honours the locale settings. Reagrds, Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] floating point char - bug?

2008-08-31 Thread Christian K.
Charles R Harris schrieb: On Sun, Aug 31, 2008 at 1:14 PM, Christian K. [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I just came across somethin I never noticed before. I cannot say whether this is due to an update of numpy but it is possible - I am running

Re: [Numpy-discussion] global overloading of 1+1 - MyClass(1, 1)

2008-08-20 Thread Christian Heimes
changes to the parser and tokenizer - perhaps to the grammar, too. The code is rather complex and tricky - and not very well documented. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo

Re: [Numpy-discussion] global overloading of 1+1 - MyClass(1, 1)

2008-08-18 Thread Christian Heimes
problem more elegant without breaking other modules? Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] global overloading of 1+1 - MyClass(1, 1)

2008-08-18 Thread Christian Heimes
for with open(filename) as fh. The ideas needs a good PEP. You are definitely up to something. You also came up with a list of possible issues and corner cases. Are you interested in pursuing the proposal? *wink* Christian ___ Numpy-discussion mailing list

Re: [Numpy-discussion] Possible new multiplication operators for Python

2008-08-17 Thread Christian Heimes
Andrew Dalke wrote: Or write B \circledast C ? (Or \oast?) Try using Google to search for that character. unicodedata.lookup('CIRCLED ASTERISK OPERATOR') '⊛' ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] C99 on windows

2008-08-16 Thread Christian Heimes
and 3.0. We came to the conclusion that we can't rely on the platform's math functions (especially trigonometric and hyperbolic functions) for special values. So Mark came up with the idea of lookup tables for special values. Read my other mail for more informations. Christian

Re: [Numpy-discussion] Addition of a dict object to all NumPy objects

2008-08-15 Thread Christian Heimes
on a 32bit OS or 8 bytes on a 64bit OS, aka sizeof(uintptr_t). An empty dict increases the size of every object by ~30 byte. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Addition of a dict object to all NumPy objects

2008-08-15 Thread Christian Heimes
. The allocation and deallocation of dicts is cheap if you can stay below the threshold. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] C99 on windows

2008-08-15 Thread Christian Heimes
in the matter. :] Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] C99 on windows

2008-08-15 Thread Christian Heimes
://svn.python.org/projects/python/trunk/Include/pymath.h http://svn.python.org/projects/python/trunk/Python/pymath.c HTH Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.arccos(numpy.inf)????

2008-05-17 Thread Christian Heimes
Stuart Brorson schrieb: Hi -- Sorry to be a pest with corner cases, but I found another one. [...] Mark and I spent a *lot* of time in fixing those edge cases in Python 2.6 and 3.0. We used the C99 standard as template. I recommend that you look at our code. Christian

Re: [Numpy-discussion] python memory use

2008-05-03 Thread Christian Heimes
/obmalloc.c . For integer and floats uses a separate block allocation schema. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Compile Numpy in VC++8

2008-04-03 Thread Christian Heimes
Matthieu Brucher schrieb: Hi, As I've said, you must start by compiling Python with VC++ 8, that means using the 2.6 alpha. Negative Houston Python 2.6 and 3.0 are using VS 2008 aka VC 9.0 Christian ___ Numpy-discussion mailing list Numpy

Re: [Numpy-discussion] Handling of numpy.power(0, something)

2008-02-28 Thread Christian Heimes
, float(nan)) nan math.pow(0, -1) Traceback (most recent call last): File stdin, line 1, in module ValueError: math domain error Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] Handling of numpy.power(0, something)

2008-02-28 Thread Christian Heimes
to the exception part. Also, what do these specs say about 0^complex? See for yourself http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf The interesting information are in Annex F.9 and Annex G.6. So far we haven't dealt with complex powers and Python doesn't support 0.**1j yet. Christian

Re: [Numpy-discussion] Is anyone knowledgeable about dll deployment on windows ?

2008-02-15 Thread Christian Heimes
DLLs. .NET assemblies as well as Side-by-Side dlls (SxS) must be registered properly. You can install a SxS dll in PATH but simple copying the DLL isn't enough. It also depends on the OS. Have fun! The SxS issue has bitten us in the a.. when we delivered the second beta of Python 3.0. Christian

Re: [Numpy-discussion] Is anyone knowledgeable about dll deployment on windows ?

2008-02-15 Thread Christian Heimes
articles to get the big picture. The information is scattered all over the place. :/ Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Float and math module enhancements for Python 2.6 and 3.0

2007-12-19 Thread Christian Heimes
-- shorter repr of floats http://bugs.python.org/issue1635 -- platform independent representation and creation of +/-inf and nan http://bugs.python.org/issue1640 -- additional functions for the math module new: sys.maxsize, gone in 3.0: sys.maxint Christian

Re: [Numpy-discussion] resize in old Numeric

2007-12-13 Thread Christian Meesters
Thank you all for your valuable input. Learned something 'bout Numeric again. And my problem is solved ;-). Thanks Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] resize in old Numeric

2007-12-12 Thread Christian Meesters
: resize only works on contiguous arrays The arrays 'a' and 'rotation' are identical. Any ideas, what's going on or how to solve this? Numeric version is: 24.2 TIA Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] Getting an item in an array with its coordinates given by another array

2007-10-29 Thread Christian K .
not to tell you nonsense. So go ahead and do so, too. So there is not way to get a sub-array based on coordinates in an array? It's just a guess, but probably you can't use an ndarray as index because indices like this [[2],[3,4]] aren't valid input for a ndarray. Christian

Re: [Numpy-discussion] Getting an item in an array with its coordinates given by another array

2007-10-28 Thread Christian K .
) out of range (0=index=2) in dimension 0 so you have to convert it to a list before: In [122]: c[ind.tolist()] Out[122]: array([[ 55., 56., 57., 58., 59.]]) Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] building pynetcdf-0.7 on OS X 10.4 intel

2007-05-03 Thread Christian Marquardt
it) NOT having any experience on Macs, but doesn't the above error message suggest that your netCDF library has been build for a i386 instead of a ppc? Could that be the problem? Can you run the ncdump and ncgen executables from the same netCDF distribution? Just a thought, Christian

Re: [Numpy-discussion] linux cluster installation

2007-05-03 Thread Christian K
be something like: ~/lib/python2.X/site-packages Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Oddity with numpy.int64 integer division

2007-04-24 Thread Christian Marquardt
Restore the invariant, and follow python. This -5 // 6 -1 and array([-5])[0] // 6 0 simply doesn't make sense - in any language, you would expect that all basic operators provide you with the same same answer when applied to the same number, no? Christian. On Tue, April 24

[Numpy-discussion] Oddity with numpy.int64 integer division

2007-04-23 Thread Christian Marquardt
should give the same, really... (Python 2.5, numpy 1.0.3dev3725, Linux, Intel compilers...) Many thanks for any ideas / advice, Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] Oddity with numpy.int64 integer division

2007-04-23 Thread Christian Marquardt
Actually, it happens for normal integers as well: n = np.array([-5, -100, -150]) n // 100 array([ 0, -1, -1]) -5//100, -100//100, -150//100 (-1, -1, -2) On Mon, April 23, 2007 22:20, Christian Marquardt wrote: Dear all, this is odd: import numpy as np fact

Re: [Numpy-discussion] Oddity with numpy.int64 integer division

2007-04-23 Thread Christian Marquardt
Hmmm, On Mon, April 23, 2007 22:29, Christian Marquardt wrote: Actually, it happens for normal integers as well: n = np.array([-5, -100, -150]) n // 100 array([ 0, -1, -1]) -5//100, -100//100, -150//100 (-1, -1, -2) and finally: n % 100 array([95, 0, 50

[Numpy-discussion] uint64 typecasting with scalars broken (?)

2007-04-22 Thread Christian Marquardt
' Thanks, Christian. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Help using numPy to create a very large multi dimensional array

2007-04-18 Thread Christian K.
('name of file').readlines() data = N.array([[float(x) for x in row.split(' ')[1:]] for row in data[1:]]) (the above expression should be one line) Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman

[Numpy-discussion] Problems building numpy and scipy on AIX

2007-04-18 Thread Christian Marquardt
where to try to fix it - does anyone on this list know? Many thanks, Christian. diff -r -C3 numpy-1.0.2.orig/numpy/distutils/fcompiler/ibm.py numpy-1.0.2/numpy/distutils/fcompiler/ibm.py *** numpy-1.0.2.orig/numpy/distutils/fcompiler/ibm.py Fri Mar 2 20:52:50 2007 --- numpy-1.0.2/numpy/distutils

Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-18 Thread Christian Marquardt
for commercial use. Just a thought... Christian. On Wed, April 18, 2007 22:27, rex wrote: Andrew Straw [EMAIL PROTECTED] [2007-04-18 13:22]: rex wrote: If your use is entirely non-commercial you can use Intel's MKL with built-in optimized BLAS and LAPACK and avoid the need for ATLAS. Just

Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-14 Thread Christian K
Robert Kern wrote: Christian K wrote: Hi, I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu package atlas3-sse2-dev which contains: /usr /usr/lib /usr/lib/sse2 /usr/lib/sse2/libatlas.a /usr/lib/sse2/libcblas.a /usr/lib/sse2/libf77blas.a /usr/lib/sse2

[Numpy-discussion] pickable ndarray subclass

2007-04-14 Thread Christian K
Hi, could someone please provide example code for how to make a subclassed ndarray pickable? I don't quite understand the docs of ndarray.__reduce__. My subclassed ndarray has just one additional attribute. Thanks, Christian ___ Numpy-discussion

[Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Christian K
Confusingly lapack_atlas resides in /usr/lib but even though setup.py looks for it in that place it reports 'not found'. What should I try next? Thanks, Christian ___ Numpy-discussion mailing list [EMAIL PROTECTED] http://projects.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Christian K
Christian K wrote: Hi, I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu package atlas3-sse2-dev which contains: [...] I tried both with and without a site.cfg: [DEFAULT] library_dirs = /usr/lib/sse2 include_dirs = /usr/include [blas_opt

Re: [Numpy-discussion] Nonblocking Plots with Matplotlib

2007-03-19 Thread Christian K .
2.6.3.3, twisted 2.4. Any ideas how to solve that? Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Nonblocking Plots with Matplotlib

2007-03-19 Thread Christian
Bill Baxter wrote: On 3/20/07, Christian K. [EMAIL PROTECTED] wrote: Hi Bill, I just tried ezplot and encountered some problems: In [1]: import ezplot In [2]: p = ezplot.Plotter() In [3]: p.plot([1,2,3],[1,4,9],marker='o') At this point a window pops up for a second, closes again

Re: [Numpy-discussion] Request for porting pycdf to NumPy

2007-02-09 Thread Christian Marquardt
is only that large because it replicates much of already existing code... I have been using this port for many weeks now without any problems or difficulties. I hope it's useful for others as well;-) Christian. On Fri, February 9, 2007 15:31, Daran L. Rife wrote: Hi Travis, If you're still

[Numpy-discussion] pyhdf / was: Request for porting pycdf to NumPy

2007-02-09 Thread Christian Marquardt
/include/hdf), so it it almost certainly needs to be adapted to the location of the actual HDF libraries and headers. Regards, Christian. On Fri, February 9, 2007 22:00, Christian Marquardt wrote: Dear list, attached is a patch for the original pycdf-0.6.2-rc1 distribution as available through

Re: [Numpy-discussion] getting indices for array positions

2007-02-08 Thread Christian Meesters
Hi Thanks for all your suggestions. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] getting indices for array positions

2007-02-07 Thread Christian Meesters
question. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] force column vector

2007-02-07 Thread Christian
any 'if'. However using the subclassed array class which was proposed by Stefan is pretty elegant. Thanks to everybody, Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] getting indices for array positions

2007-02-07 Thread Christian
Christian Meesters meesters at uni-mainz.de writes: Since searchsorted returns the index of the first item in a that is = or the key, it can't make the distinction between 0.1 and 0.2 as I would like to Then how about a.searchsorted(val+0.5) Christian

Re: [Numpy-discussion] force column vector

2007-02-07 Thread Christian
Sven Schreiber svetosch at gmx.net writes: So I think what's needed is: b = array(yourlist) b.reshape(b.shape[0], -1) Yes! That is it. Thanks, Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org

Re: [Numpy-discussion] NaN, min, and max

2007-02-07 Thread Christian
- Beautiful! Look at all the tripple digits! Works as expected with python2.4/numpy1.0 Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] building NumPy with Intel CC MKL

2007-01-24 Thread Christian Marquardt
as --prefix), and set PYTHONPATH accordingly. It's not a good idea to overwrite the system wide installations, but again - that's purely a convention, nothing more. Hope this helps a bit... Good luck! Christian. Did you change the distutils installation location? See this page for the various

Re: [Numpy-discussion] Docstring standards for NumPy and SciPy

2007-01-10 Thread Christian Marquardt
On Wed, 2007-01-10 at 17:53 -0600, Robert Kern wrote: How are you viewing the docstrings that wouldn't associate the docstring with the function? print function.__doc__ Like so: Python 2.4 (#1, Mar 22 2005, 21:42:42) [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2 Type