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

2016-04-25 Thread Christian Aichinger
mbH - weather matters 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

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

2016-02-16 Thread BERGER Christian
3rd party module for our 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 e

Re: [Numpy-discussion] Problems using add_npy_pkg_config

2015-08-14 Thread Christian Engwer
cumvent distutils 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 mail

Re: [Numpy-discussion] Problems using add_npy_pkg_config

2015-08-13 Thread Christian Engwer
ects as well. The minimal working example is without any python code, as I only have problems with the pkg config 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] Problems using add_npy_pkg_config

2015-08-12 Thread Christian Engwer
ibute '__getitem__' I also tried 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

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

2014-05-01 Thread Christian K.
ks like you are looking 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. <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, >

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 t

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

2013-11-10 Thread Christian K.
ndows 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

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

2013-09-14 Thread Christian K.
#x27;-msse3'] define_macros = [('NO_ATLAS_INFO', 3)] atlas_info: NOT AVAILABLE lapack_mkl_info: NOT AVAILABLE blas_mkl_info: NOT AVAILABLE atlas_blas_info: NOT AVAILABLE mkl_info: NOT AVAILABLE compilers: GNU Fortran (GCC) 4.2.3 i686-apple-darwin11-llvm-gcc-4.2

Re: [Numpy-discussion] Setter on array

2013-08-16 Thread Christian K.
],subclass_state) return tuple(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-D

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

2013-04-25 Thread Christian K.
part out 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. Regard

Re: [Numpy-discussion] 3d ODR

2011-06-17 Thread Christian K .
Robert Kern gmail.com> writes: > > On Thu, Jun 16, 2011 at 06:28, Christian K. 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 im

[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.
size 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.
an't Your function most 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
(-1.1) Out[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

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

2010-07-25 Thread Christian K.
2D arrays containing the x- and y-coordinates which are then used to calculate 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] Sun Studio Compilers on Linux / atan2 regression

2010-02-17 Thread Christian Marquardt
ved to enter 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_conf

Re: [Numpy-discussion] making the distinction between -0.0 and 0.0..

2009-09-29 Thread Christian Heimes
Christopher Barker wrote: > Hi folks, > > This isn't really a numpy question, and I'm doing this with regular old > python, but I figure you are the folks that would know this: > > How do I get python to make a distinction between -0.0 and 0.0? IN this > case, I'm starting with user input, so:

[Numpy-discussion] matlab for numpy users

2009-09-16 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
lopers may also be interested to assist you directly. 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 ___

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. wrote: >> John Schulman 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

Re: [Numpy-discussion] switching to float32

2009-06-26 Thread Christian K .
=np.float32 everywhere? 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

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

2009-04-06 Thread Christian K .
Hi, I am looking for an elegant and fast way to fill the voids of a 2d array with neighbouring values. The array's size can be up to (1000, 1000) and its values are slowly varying around a mean value. What I call voids are values which are far from the mean value (+- 80%). A void usually extend

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

2009-03-29 Thread Christian Marquardt
hink currently, there's no C++ any more in scipy (but I could be wrong). 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

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" wrote: > > > > 2009/3/27 Christian Marquardt < christ...@marquardt.sc > > > Error messages? Sure;-) > > python -c 'import numpy; numpy.test()' >

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 > argumen

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

2009-03-27 Thread Christian Marquardt
omplex64) -- Ran 2029 tests in 19.729s FAILED (KNOWNFAIL=1, failures=4) MEDEA /home/marq> - "Charles R Harris" wrote: > > > > On Thu, Mar 26, 2009 at 9:06 PM, Charles R Harris < charles

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

2009-03-26 Thread Christian Marquardt
, 4.60555124 -1.11022302e-16j], dtype=complex64) Are x and y the expected and actual results? That would just show that there are small rounding errors in the imaginary part, and that MKL returns the results in another order, no? - "Charles R Harris" wrote: > > > &g

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

2009-03-26 Thread Christian Marquardt
seem recognize 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. -

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

2009-03-26 Thread Christian Marquardt
the .src files converted? Many thanks, Christian. - "Charles R Harris" wrote: > > > > On Thu, Mar 26, 2009 at 6:25 PM, Christian Marquardt < christ...@marquardt.sc > > wrote: > Hello, > > I tried to compile and install numpy 1.3.0b1 on a

[Numpy-discussion] Numpy 1.3.0b1 with Intel compiler

2009-03-26 Thread Christian Marquardt
k the error message does not even 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 v1.3.0b1 on Linux w/ Intel compilers - unknown file type

2009-03-26 Thread Christian Marquardt
k the error message does not even 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 v1.2.0 vs 1.2.1 and setup_tools

2009-03-26 Thread Christian Marquardt
b1 yet - I have difficulties to compile that currently (another email). I'd be more than willing to track this down, but is there anybody who could give me a starting point where I should start to look? Many thanks, Christian. ___ Numpy-discussio

Re: [Numpy-discussion] parallel compilation of numpy

2009-02-18 Thread Christian Heimes
ial This should give a nice speed up 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
t will move to another server (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
ython 2.6 - mingw 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-dis

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

[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] np.nan and ``is``

2008-09-19 Thread Christian Heimes
sign bit of a float must be made through the appropriate APIs - either the NumPy API or the new 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

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 up

[Numpy-discussion] floating point char - bug?

2008-08-31 Thread Christian K.
r numbers 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-discu

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

2008-08-20 Thread Christian Heimes
roposal you've to make 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://proj

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

2008-08-18 Thread Christian Heimes
x27;s less ambiguous and can't be mistaken 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 __

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

2008-08-18 Thread Christian Heimes
ith float as from decimal import Decimal >>> type(1.0) Wouldn't that solve your general 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] 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 http://projects.scipy.o

Re: [Numpy-discussion] C99 on windows

2008-08-16 Thread Christian Heimes
g our work for Python 2.6 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 fo

Re: [Numpy-discussion] C99 on windows

2008-08-15 Thread Christian Heimes
orm workarounds: http://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] C99 on windows

2008-08-15 Thread Christian Heimes
specs but we used C89 code. That should explain my interest in the matter. :] 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
e default size of the dict free list is 80 elements. 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] Addition of a dict object to all NumPy objects

2008-08-15 Thread Christian Heimes
tes 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] 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.

Re: [Numpy-discussion] python memory use

2008-05-03 Thread Christian Heimes
ned in http://svn.python.org/projects/python/trunk/Objects/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 m

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

2008-02-28 Thread Christian Heimes
eption. Since we can't do both in Python we sticked to the exception part. > Also, what do these specs say about 0^? 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 wi

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

2008-02-28 Thread Christian Heimes
0859 refs] >>> math.pow(0, float("inf")) 0.0 >>> math.pow(0, float("nan")) nan >>> math.pow(0, -1) Traceback (most recent call last): File "", line 1, in ValueError: math domain error Christian

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

2008-02-15 Thread Christian Heimes
bout ten 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

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

2008-02-15 Thread Christian Heimes
ond beta of Python 3.0. 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
/issue1580 -- 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

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
' 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://projects.scipy.org/mailman/listinfo/numpy-discussion

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

2007-10-29 Thread Christian K .
y book to be sure 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]]

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

2007-10-28 Thread Christian K .
onvert 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://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-15 Thread Christian Marquardt
On Fri, June 15, 2007 06:01, David Cournapeau wrote: > I think it is important to separate different issues: object code > compatibility, runtime compatibility, etc... Those are different issues. > First, mixing ICC compiled code and gcc code *has* to be possible (I > have never tried), otherwise,

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-14 Thread Christian Marquardt
Hi, I think the default for the standard python distutils is to use the compiler and the compiler settings for the C compiler that were used to build Python itself. There might be ways to specify other compilers; but if you have a shared python library build with one compiler and modules build wit

Re: [Numpy-discussion] linux cluster installation

2007-05-03 Thread Christian K
; File "", line 1, in ? > ImportError: No module named numpy You need to set PYTHONPATH to point at your site-packages dir. So in your case it should 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] building pynetcdf-0.7 on OS X 10.4 intel

2007-05-03 Thread Christian Marquardt
ppc (can't load from 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?

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

2007-04-24 Thread Christian Marquardt
On Tue, April 24, 2007 23:31, Christian Marquardt wrote: > On Tue, April 24, 2007 23:08, Robert Kern wrote: >> Christian Marquardt wrote: >>> Restore the invariant, and follow python. >>> >>> This >>> >>>>>> -5 // 6 &g

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

2007-04-24 Thread Christian Marquardt
On Tue, April 24, 2007 23:08, Robert Kern wrote: > Christian Marquardt wrote: >> Restore the invariant, and follow python. >> >> This >> >>>>> -5 // 6 >>-1 >> >> and >> >>>>> array([-5])[0] // 6 >&g

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?

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//

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 i

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

2007-04-23 Thread Christian Marquardt
ug in numpy, or in python's implementation of longs? I would think both 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 N

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

2007-04-23 Thread Christian Marquardt
On Mon, April 23, 2007 01:28, Charles R Harris wrote: > Looks like a bug to me: > > In [5]: x = array([1],dtype=uint64) > > In [6]: type(x[0]) > Out[6]: > > In [7]: type(x[0]+1) > Out[7]: > > Chuck Yeah. Especially as it works apparently fine f

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

2007-04-22 Thread Christian Marquardt
Hello, The following is what I expected... >>> y = 1234 >>> x = array([1], dtype = "uint64") >>> print x + y, (x + y).dtype.type [1235] but is this the way it should be? (numpy 1.0.2, Linux, Intel comilers) >>> print x[0] + y, t

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

2007-04-21 Thread Christian Marquardt
Yes, that worked - many thanks! Christian. On Thu, April 19, 2007 22:38, David M. Cooke wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Christian Marquardt wrote: >> Dear David, >> >> the svn version of numpy does indeed build cleanly on AIX. M

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

2007-04-18 Thread Christian Marquardt
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 a

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

2007-04-18 Thread Christian Marquardt
for the C++ compiler might be overwritten? There are two or three C compiler related python modules in numpy/distutils... Or would you think that this problem is entirely unrelated to the distutils in numpy? Many thanks, Christian. On Wed, April 18, 2007 17:20, David M. Cooke wrote

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

2007-04-18 Thread Christian Marquardt
dification happens, so I've no idea 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

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

2007-04-17 Thread Christian K.
this instead (not tested): import numpy as N data = open('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 ___

Re: [Numpy-discussion] pickable ndarray subclass

2007-04-16 Thread Christian K
Stefan van der Walt wrote: > Hi Christiaan > > On Sun, Apr 15, 2007 at 02:03:49PM +0900, Christian K wrote: >> could someone please provide example code for how to make a subclassed >> ndarray >> pickable? I don't quite understand the docs of ndarray.__reduce__. &

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

2007-04-16 Thread Christian K
-base, atlas3-sse and atlas3-sse2-dev installed. Sorry for the noise. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[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-discu

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/li

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

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

2007-04-13 Thread Christian K
r/lib/sse2'] language = c define_macros = [('ATLAS_WITHOUT_LAPACK', None)] lapack_info: libraries lapack not found in /usr/local/lib libraries lapack not found in /usr/lib NOT AVAILABLE Confusingly lapack_atlas resides in /usr/lib but even though setup.py looks for it in tha

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=&#x

Re: [Numpy-discussion] Nonblocking Plots with Matplotlib

2007-03-19 Thread Christian K .
x with wxPython 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] pyhdf / was: Request for porting pycdf to NumPy

2007-02-09 Thread Christian Marquardt
Oops! > a) Don't know; the last releases of pycdf and pyhdf are from February 2001 pycdf is from 2006, of course. Sorry! Chris. ___ Numpy-discussion mailing list Numpy-dis

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

2007-02-09 Thread Christian Marquardt
On Fri, February 9, 2007 22:28, Christopher Barker wrote: >> Andre Gosselin (the guy who wrote pycdf) also wrote an interface to HDF4 >> (not 5) named pyhdf. > > Is he still maintaining these packages? Have you submitted the patches > to him? a) Don't know; the last releases of pycdf and pyhdf are

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

2007-02-09 Thread Christian Marquardt
X/lib) and header files (in $PREFIX/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

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

2007-02-09 Thread Christian Marquardt
e patch 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: &

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] NaN, min, and max

2007-02-07 Thread Christian
1] = 0 > >> x.max() > 0.999474999444 <- 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] force column vector

2007-02-07 Thread Christian
Sven Schreiber 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://projec

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

2007-02-07 Thread Christian
Christian Meesters 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(

Re: [Numpy-discussion] force column vector

2007-02-07 Thread Christian
solution without using 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 Meesters
distinction between 0.1 and 0.2 as I would like to have. Hope this clarifies my question. Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] getting indices for array positions

2007-02-07 Thread Christian Meesters
within a different function. But it should help clarify the problem. TIA Christian ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

  1   2   >