Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
. > 22 февр. 2017 г., в 20:55, Stephan Hoyer <sho...@gmail.com> написал(а): > > On Wed, Feb 22, 2017 at 8:57 AM, Alex Rogozhnikov <alex.rogozhni...@yandex.ru > <mailto:alex.rogozhni...@yandex.ru>> wrote: > Pandas may be nice, if you need a report, and you need get

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
> 22 февр. 2017 г., в 20:39, josef.p...@gmail.com написал(а): > > > > On Wed, Feb 22, 2017 at 11:57 AM, Alex Rogozhnikov > <alex.rogozhni...@yandex.ru <mailto:alex.rogozhni...@yandex.ru>> wrote: > Hi Matthew, > maybe it is not the best place to dis

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
orry for large letter. Alex. > 22 февр. 2017 г., в 18:38, Matthew Harrigan <harrigan.matt...@gmail.com> > написал(а): > > Alex, > > Can you please post some code showing exactly what you are trying to do and > any issues you are having, particularly the "irrita

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-22 Thread Alex Rogozhnikov
nother strange question: in general, it is considered that once numpy.array is created, it's shape not changed. But if i want to keep the same recarray and change it's dtype and/or shape, is there a way to do this? Thanks, Alex. > 22 февр. 2017 г., в 3:53, Nathaniel Smith <n...@pobox.co

Re: [Numpy-discussion] Fortran order in recarray.

2017-02-21 Thread Alex Rogozhnikov
) in a column-by-column way (and this is numpy, not pandas). Is there such a magic thing? Alex. > 22 февр. 2017 г., в 2:10, Chris Barker <chris.bar...@noaa.gov> написал(а): > > > > On Tue, Feb 21, 2017 at 3:05 PM, Alex Rogozhnikov <alex.rogozhni...@yandex.ru > <mai

[Numpy-discussion] Fortran order in recarray.

2017-02-21 Thread Alex Rogozhnikov
umpy x = numpy.recarray(dtype=[('a', int), ('b', float)], shape=[1000], order='C') y = numpy.recarray(dtype=[('a', int), ('b', float)], shape=[1000], order='F') print numpy.array(x.ctypes.get_strides()) # [16] print numpy.array(y.ctypes.get_strides()) # [16] is this an intended behavior or bug? Thanks

Re: [Numpy-discussion] From Python to Numpy

2017-01-05 Thread Alex Rogozhnikov
> 31 дек. 2016 г., в 2:09, Nicolas P. Rougier <nicolas.roug...@inria.fr> > написал(а): > >> >> On 30 Dec 2016, at 20:36, Alex Rogozhnikov <alex.rogozhni...@yandex.ru> >> wrote: >> >> Hi Nicolas, >> that's a very nice work! >

Re: [Numpy-discussion] From Python to Numpy

2016-12-30 Thread Alex Rogozhnikov
ces as those can be visualized easily e.g. on some photo. Thanks, Alex. > 23 дек. 2016 г., в 12:14, Kiko <kikocorre...@gmail.com> написал(а): > > > > 2016-12-22 17:44 GMT+01:00 Nicolas P. Rougier <nicolas.roug...@inria.fr > <mailto:nicolas.roug...@inria.fr>

Re: [Numpy-discussion] PR 8053 np.random.multinomial tolerance param

2016-09-27 Thread Alex Beloi
Thanks for pointing out the tensorflow multinomial implementation, this will cover my use case perfectly. The documentation on raises is redundant as well, the relevant information is mentioned in the parameter description. I’ve closed the PR. Cheers, Alex From: NumPy

[Numpy-discussion] PR 8053 np.random.multinomial tolerance param

2016-09-26 Thread Alex Beloi
`1e-12` tolerance to a non-negative float parameter with default value `1e-12`. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Weighted percentile / quantile

2016-03-02 Thread Alex Rogozhnikov
Hi, Joe, > I am working (slowly) on upgrading the C code for partitioning with > arbitrary arrays of real weights really good to know there is some work in this direction. 02 марта 2016 г., в 6:27, Joseph Fox-Rabinovitz <jfoxrabinov...@gmail.com> написал(а): > Alex, >

[Numpy-discussion] Weighted percentile / quantile

2016-03-01 Thread Alex Rogozhnikov
at the moment (numpy/scipy/pandas)? Cheers, Alex.___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-06 Thread Alex Rogozhnikov
hing to other points, but this is not simple. (I left %matplolib inline due to more appropriate rendering) Alex. 02.10.15 10:50, Kiko пишет: 2015-10-02 9:48 GMT+02:00 Kiko <kikocorre...@gmail.com <mailto:kikocorre...@gmail.com>>: 2015-10-02 9:38 GMT+02:00 Alex Rogozhnikov

Re: [Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-02 Thread Alex Rogozhnikov
I would suggest %matplotlib notebook It will still have to a nice png, but you get an interactive figure when it is live. Amazing, thanks. I was using mpld3 for this. (for some strange reason I need to put %matplotlib notebook before each plot) The recommendation of inverting a

[Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-01 Thread Alex Rogozhnikov
Comments are welcome, specially if you know any other ways to make this code faster (or better). Regards, Alex. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.mean still broken for largefloat32arrays

2014-07-28 Thread alex
On Mon, Jul 28, 2014 at 8:46 AM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mo, 2014-07-28 at 14:37 +0200, Eelco Hoogendoorn wrote: To rephrase my most pressing question: may np.ones((N,2)).mean(0) and np.ones((2,N)).mean(1) produce different results with the implementation in the

Re: [Numpy-discussion] `allclose` vs `assert_allclose`

2014-07-18 Thread alex
On Fri, Jul 18, 2014 at 9:47 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Jul 18, 2014 at 2:32 PM, Chris Barker chris.bar...@noaa.gov wrote: On Fri, Jul 18, 2014 at 12:43 PM, Pauli Virtanen p...@iki.fi wrote: 18.07.2014 22:13, Chris Barker kirjoitti: [clip] but an

Re: [Numpy-discussion] Possible bug in linalg.matrix_rank

2014-05-22 Thread alex
On Thu, May 22, 2014 at 1:50 PM, Darlan Cavalcante Moreira darc...@gmail.com wrote: After updating Ubuntu to 14.04 and thus numpy to version 1.8.1 I'm having problems with the linalg.matrix_rank function that I didn't have before (as far as I know). More specifically, I get the error

Re: [Numpy-discussion] Easter Egg or what I am missing here?

2014-05-21 Thread alex
On Wed, May 21, 2014 at 3:29 PM, Siegfried Gonzi siegfried.go...@ed.ac.uk wrote: Please would anyone tell me the following is an undocumented bug otherwise I will lose faith in everything: == import numpy as np years = [2004,2005,2006,2007] dates = [20040501,20050601,20060801,20071001]

Re: [Numpy-discussion] numerical gradient, Jacobian, and Hessian

2014-04-21 Thread alex
On Mon, Apr 21, 2014 at 3:13 AM, Eelco Hoogendoorn hoogendoorn.ee...@gmail.com wrote: As far as I can tell, [Theano] is actually the only tensor/ndarray aware differentiator out there And AlgoPy, a tensor/ndarray aware arbitrary order automatic differentiator (https://pythonhosted.org/algopy/)

Re: [Numpy-discussion] Standard Deviation (std): Suggested change for ddof default value

2014-04-01 Thread alex
On Tue, Apr 1, 2014 at 4:54 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Apr 1, 2014 at 2:08 PM, Nathaniel Smith n...@pobox.com wrote: On Tue, Apr 1, 2014 at 9:02 PM, Sturla Molden sturla.mol...@gmail.com wrote: Haslwanter Thomas thomas.haslwan...@fh-linz.at wrote:

[Numpy-discussion] f2py links extensions to incorrect python installation on OSX / Anaconda

2014-03-27 Thread Alex Goodman
solution, such as an additional command-line argument when invoking f2py? For what it is worth, I am also using Version 14.0.2 of the Intel Fortran Compiler. Thanks, Alex -- Alex Goodman Graduate Research Assistant Department of Atmospheric Science Colorado State University

Re: [Numpy-discussion] f2py links extensions to incorrect python installation on OSX / Anaconda

2014-03-27 Thread Alex Goodman
Hi Robert, That did the trick, thanks! Alex On Thu, Mar 27, 2014 at 3:02 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Mar 27, 2014 at 8:50 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Mar 27, 2014 at 8:30 PM, Alex Goodman alex.good...@colostate.edu wrote: Hi all

Re: [Numpy-discussion] Missing Data

2014-03-26 Thread alex
On Wed, Mar 26, 2014 at 7:22 PM, T J tjhn...@gmail.com wrote: What is the status of: https://github.com/numpy/numpy/blob/master/doc/neps/missing-data.rst For what it's worth this NEP was written in 2011 by mwiebe who made 258 numpy commits in 2011, 1 in 2012, and 3 in 2014. According to

Re: [Numpy-discussion] GSoC project: draft of proposal

2014-03-13 Thread alex
On Thu, Mar 13, 2014 at 1:35 PM, Leo Mao lmao20...@gmail.com wrote: And I found that maybe I can also make some functions related to linalg (like dot, svd or something else) faster by integrating a proper library into numpy. I think everyone who wants fast numpy linalg already connects to

Re: [Numpy-discussion] Adding weights to cov and corrcoef

2014-03-06 Thread alex
On Thu, Mar 6, 2014 at 2:51 PM, Nathaniel Smith n...@pobox.com wrote: On Wed, Mar 5, 2014 at 4:45 PM, Sebastian Berg sebast...@sipsolutions.net wrote: Hi all, in Pull Request https://github.com/numpy/numpy/pull/3864 Neol Dawe suggested adding new parameters to our `cov` and `corrcoef`

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-20 Thread alex
On Mon, Feb 17, 2014 at 1:24 PM, Sturla Molden wrote: Sturla Molden wrote: Dave Hirschfeld wrote: Even if lapack_lite always performed the isfinite check and threw a python error if False, it would be much better than either hanging or segfaulting and people who care about the isfinite

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-17 Thread alex
On Mon, Feb 17, 2014 at 4:49 AM, Dave Hirschfeld novi...@gmail.com wrote: alex argriffi at ncsu.edu writes: Hello list, Here's another idea resurrection from numpy github comments that I've been advised could be posted here for re-discussion. The proposal would be to make np.linalg.svd

Re: [Numpy-discussion] Proposal to make power return float, and other such things.

2014-02-17 Thread alex
On Mon, Feb 17, 2014 at 8:13 PM, Charles R Harris charlesr.har...@gmail.com wrote: This is apropos issue #899, where it is suggested that power promote integers to float. That sounds reasonable to me, but such a change in behavior makes it a bit iffy. Thoughts? After this change, what would

Re: [Numpy-discussion] Requesting Code Review of nanmedian ENH

2014-02-16 Thread alex
On Sun, Feb 16, 2014 at 12:13 PM, David Freese dfre...@stanford.edu wrote: Hi everyone, I put together a np.nanmedian function to extend np.median to handle nans. Could someone review this code and give me some feedback on it before I submit a pull request for it? It looks good to submit as

Re: [Numpy-discussion] Requesting Code Review of nanmedian ENH

2014-02-16 Thread alex
It doesn't deal with numpy.matrix in the same way as numpy.nanmean. never mind about this -- it looks like np.median is currently broken for np.matrix. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Requesting Code Review of nanmedian ENH

2014-02-16 Thread alex
On Sun, Feb 16, 2014 at 1:01 PM, David Freese dfre...@stanford.edu wrote: the 0s put into the array copy arr are not used in computation. The _replace_nan call is used primarily to generate a mask of the NaNs and make sure it passes the mutation test. I updated the unit tests to reflect

[Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
forever] ``` Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 5:08 PM, josef.p...@gmail.com wrote: On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sa, 2014-02-15 at 16:37 -0500, alex wrote: Hello list, Here's another idea resurrection from numpy github comments that I've been advised could

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 5:08 PM, josef.p...@gmail.com wrote: On Sat, Feb 15, 2014 at 4:56 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sa, 2014-02-15 at 16:37 -0500, alex wrote: Hello list, Here's another idea resurrection from numpy github comments that I've been advised could

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
, Feb 15, 2014 at 4:56 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sa, 2014-02-15 at 16:37 -0500, alex wrote: Hello list, Here's another idea resurrection from numpy github comments that I've been advised could be posted here for re-discussion. The proposal would

Re: [Numpy-discussion] svd error checking vs. speed

2014-02-15 Thread alex
On Sat, Feb 15, 2014 at 6:34 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Sa, 2014-02-15 at 18:20 -0500, alex wrote: snip I'm not sure exactly what you mean by this. You are suggesting that if the svd fails with some kind of exception (possibly poorly or misleadingly worded

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-13 Thread alex
On Mon, Feb 10, 2014 at 11:16 AM, Alexander Belopolsky ndar...@mac.com wrote: On Sun, Feb 9, 2014 at 4:59 PM, alex argri...@ncsu.edu wrote: On the other hand, it really needs to be deprecated. While numpy.matrix may have its problems, a NEP should list a better rationale than the above

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-11 Thread alex
be particularly useful for representations of linear operators for which elementwise modification might be less efficient (for example as in some implementations of sparse matrices) or essentially unavailable (for example as in matrix-free linear operators). Alex

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-11 Thread alex
explicitly in their project. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 11:27 AM, josef.p...@gmail.com wrote: How do we calculate the diagonal of the hat matrix without using N by N matrices? Not sure if this was a rhetorical question or what, but this seems to work leverages = np.square(scipy.linalg.qr(X, mode='economic')[0]).sum(axis=1)

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 12:16 PM, Nathaniel Smith n...@pobox.com wrote: On Mon, Feb 10, 2014 at 12:02 PM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: Yes, but these will be scipy.sparse matrices, nothing to do with numpy (dense) matrices. Unfortunately when scipy.sparse matrices

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 2:03 PM, eat e.antero.ta...@gmail.com wrote: Rhetorical or not, but FWIW I'll prefer to take singular value decomposition (u, s, vt= svd(x)) and then based on the singular values s I'll estimate a numerically feasible rank r. Thus the diagonal of such hat matrix would be

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 2:36 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Feb 10, 2014 at 6:26 AM, Nathaniel Smith n...@pobox.com wrote: On Sun, Feb 9, 2014 at 4:59 PM, alex argri...@ncsu.edu wrote: Hello list, I wrote this mini-nep for numpy but I've been advised it is more

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 3:47 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Feb 10, 2014 at 12:44 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Feb 10, 2014 at 1:23 PM, Alan G Isaac alan.is...@gmail.com wrote: On 2/10/2014 3:04 PM, Matthew Brett wrote: I

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-10 Thread alex
On Mon, Feb 10, 2014 at 4:42 PM, Alan G Isaac alan.is...@gmail.com wrote: On 2/10/2014 4:40 PM, alex wrote: I really want to remove it Can you articulate the problem created by its existence that leads you to this view? In my opinion, Pauli has articulated these problems well in this thread

[Numpy-discussion] deprecate numpy.matrix

2014-02-09 Thread alex
closer to the realm of acceptable discussion. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] deprecate numpy.matrix

2014-02-09 Thread alex
On Sun, Feb 9, 2014 at 5:12 PM, Alan G Isaac wrote: On 2/9/2014 4:59 PM, alex wrote: The ``numpy.matrix`` API provides a low barrier to using Python for linear algebra, just as the pre-3 Python ``input`` function and ``print`` statement provided low barriers to using Python

Re: [Numpy-discussion] Need help with np.ma.median and np.apply_along_axis

2013-12-27 Thread alex
median is faster in version 1.8 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] xkcd on git commit messages.

2013-11-27 Thread alex
On Wed, Nov 27, 2013 at 11:56 AM, Charles R Harris charlesr.har...@gmail.com wrote: Here. And his later commit messages went straight to https://twitter.com/gitlost ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] runtime warning for where

2013-11-16 Thread alex
On Sat, Nov 16, 2013 at 8:28 AM, David Pine djp...@gmail.com wrote: The program at the bottom of this message returns the following runtime warning: python test.py test.py:5: RuntimeWarning: invalid value encountered in divide return np.where(x==0., 1., np.sin(x)/x) The function works

Re: [Numpy-discussion] runtime warning for where

2013-11-16 Thread alex
On Sat, Nov 16, 2013 at 8:28 AM, David Pine djp...@gmail.com wrote: The program at the bottom of this message returns the following runtime warning: python test.py test.py:5: RuntimeWarning: invalid value encountered in divide return np.where(x==0., 1., np.sin(x)/x) The function works

Re: [Numpy-discussion] is np vector a sequence?

2013-10-28 Thread alex
On Mon, Oct 28, 2013 at 11:47 AM, Neal Becker ndbeck...@gmail.com wrote: isinstance (np.zeros (10), collections.Sequence) Out[36]: False That's unfortunate. There seems to be a discussion here https://github.com/numpy/numpy/issues/2776 Alex

Re: [Numpy-discussion] NumPy 1.8.0rc2 release

2013-10-25 Thread alex
this difference between numpy versions is an unexpected problem. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] profiling numpy functions

2013-10-23 Thread alex
I have a question about numpy profiling. When I run my script with -m cProfile I see timings for lots of functions, but not for some like np.exp(). How do I see these timings? I don't want to have to work around it by writing a lot of functions like def mynumpyexp(A): return np.exp(A).

[Numpy-discussion] How to find number of bytes in a PyArrayObject without a segfault

2013-09-12 Thread Alex Eftimiades
), or iterating over each dimension? Please point me in the right direction. There must be a way or else the entire software suite would not work. Thanks, Alex Eftimiades ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

[Numpy-discussion] Fwd: Pull request #3188 - Void scalar pickling behavior.

2013-04-06 Thread Alex Ford
on pickling, which pickle properly. Unless there are objections or opinions on potential solutions, I am inclined to implement A. Thanks, Alex Ford ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

[Numpy-discussion] Merging structured arrays with mixed dtypes including '|O4'

2013-01-28 Thread Alex
. Any help much appreciated. Alex van der Spek ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Should abs([nan]) be supported?

2012-09-30 Thread Alex Leach
built my Ubuntu python with the '-fp-model strict' option, as per recommendations I've seen, but this turns on floating point exceptions, so I'm going to rebuild with '-fp-model precise -fp-model source', and see how it goes... Cheers, Alex ___ NumPy

[Numpy-discussion] vectorized multi-matrix multiplication

2012-08-26 Thread Alex Flint
anything that works yet. Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] vectorized multi-matrix multiplication

2012-08-26 Thread Alex Flint
Thank you. On Sun, Aug 26, 2012 at 11:04 AM, Alex Flint alex.fl...@gmail.com wrote: I have two lists of 3x3 arrays and I would like to compute the matrix product of the i-th element in the first list with the i-th element in the second list. Of course, I could just loop over the lists: for i

Re: [Numpy-discussion] how to uninstall numpy

2012-08-06 Thread Alex Clark
installed, which I think should include the console_script f2py?) Alex Cheers, Scott -- Alex Clark · http://pythonpackages.com/ONE_CLICK ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

Re: [Numpy-discussion] ANN: pythonpackages.com beta

2012-07-29 Thread Alex Clark
here with some more details about the problem? - https://bitbucket.org/pythonpackages/pythonpackages.com/issues/new IIUC an optimized BLAS is some shared library that makes numpy's operations peform better? Alex Fred On Sat, Jul 28, 2012 at 7:25 PM, Alex Clark acl...@aclark.net wrote

[Numpy-discussion] ANN: pythonpackages.com beta

2012-07-28 Thread Alex Clark
/nights in #pythonpackages on irc.freenode.net. Hope to meet/talk with all of you soon. Alex -- Alex Clark · http://pythonpackages.com/ONE_CLICK ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

[Numpy-discussion] installing matplotlib in MacOs 10.6.8.

2011-12-25 Thread Alex Ter-Sarkissov
hi everyone, I run python 2.7.2. in Eclipse (recently upgraded from 2.6). I have a problem with installing matplotlib (I found the version for python 2.7. MacOs 10.3, no later versions). If I run python in terminal using arch -i386 python, and then from matplotlib.pylab import * and similar

[Numpy-discussion] strange conversion integer to float

2011-12-17 Thread Alex van Houten
') time_array array([ 20091232.], dtype=float32) 20091231---20091232 Why? Note: float(20091231) 20091231.0 Thanks, Alex.___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
I'm using Eclipse (PyDev) on MacOS. I downloaded scipy010, installed it and added path to .mpkg file to PYTHONPATH and scipy to forced built-in. Nothing worked, I keep getting 'module scipy not found'. I then removed the link to the .mpkg and still nothing works. Strange enough, numpy works just

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
yes, that's exactly what i did. I'm using Python2.6 both in PyDev and Scipy. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
yeah, I've already removed it, still doesn't work. I'm running Python 2.6 and SciPy version I'm trying to install is scipy-0.10.0-py2.6-python.org-macosx10.3., pydev version is 2.2.4 I've had no trouble running numpy or Tkinter for example. Also none of the other modules I'm using have been

[Numpy-discussion] scipy installation problem

2011-12-14 Thread Alex Ter-Sarkissov
OK thanks guys, reinstalling the interpreter did the trick. I'm quite sure I did it before though, without any effect. More interestingly, I have two interpreters running, one for 2.6 and the other the auto. So the latter one still tells me the module isn't found, the former works just fine.

[Numpy-discussion] binary to ascii

2011-11-29 Thread Alex Ter-Sarkissov
hi eveyone, is there a simple command in numpy similar to matlab char(bin2dec('//some binary value//')) to convert binary to characters and back? thanks ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

[Numpy-discussion] dtyping with .astype()

2011-10-17 Thread Alex van der Spek
) gives me a confusing result. I only asked to name the columns and change their types to half precision floats. What am I missing? How to do this? Thank you in advance, Alex van der Spek ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

[Numpy-discussion] (no subject)

2011-10-03 Thread Alex Ter-Sarkissov
I got a problem running NumPy in Eclipse. I recently installed PyDev, but after downloading NumPy the installation attempt failed since python 2.6 was not found. I've installed Python 2.7. Do I need to replace it with Python 2.6? ___ NumPy-Discussion

[Numpy-discussion] dealing with RGB images

2011-08-09 Thread Alex Flint
to achieve this within numpy? Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] inconsistent semantics for double-slicing

2011-07-27 Thread Alex Flint
image, modulo a mask on the small image. Is this meant to be like this? Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] import

2011-07-19 Thread Alex Ter-Sarkissov
this is probably silly question, I've seen in this in one of the tutorials: from tkinter import * import tkinter.messagebox given that * implies importing the whole module, why would anyone bother with importing a specific command on top of it? ___

[Numpy-discussion] correlation in fourier domain

2011-06-24 Thread Alex Flint
I would like to perform 2d correlations between a large matrix A and a bunch of small matrices B1...Bn. Is there anything built into numpy to help me do this efficiently in the fourier domain (i.e. DFT of A - multiplication with DFT of B1..Bn)? Cheers, Alex

[Numpy-discussion] argmax for top N elements

2011-06-22 Thread Alex Flint
Is it possible to use argmax or something similar to find the locations of the largest N elements in a matrix? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] fast SSD

2011-06-21 Thread Alex Flint
sub-array and computes the SSD with something like ((A-B)**2).sum(). Cheers, Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Alex Flint
At the moment I'm using numpy.dot to convert a WxHx3 RGB image to a grayscale image: src_mono = np.dot(src_rgb.astype(np.float), np.ones(3)/3.); This seems quite slow though (several seconds for a 3 megapixel image) - is there a more specialized routine better suited to this? Cheers, Alex

Re: [Numpy-discussion] fast grayscale conversion

2011-06-20 Thread Alex Flint
really want float64, it is still faster to do the first operation with single precision: In [8]: timeit b = a.astype(np.float32).sum(axis=-1).astype(np.float64); b /= 3.0 10 loops, best of 3: 163 ms per loop Eric On Jun 20, 2011, at 4:15 PM, Alex Flint wrote: At the moment I'm

[Numpy-discussion] k maximal elements

2011-06-06 Thread Alex Ter-Sarkissov
I have a vector of positive integers length n. Is there a simple (i.e. without sorting/ranking) of 'pulling out' k larrgest (or smallest) values. Something like *sum(x[sum(x,1)(max(sum(x,1)+min(sum(x,1/2,])* but smarter ___ NumPy-Discussion mailing

Re: [Numpy-discussion] [ANN]: OpenPiv. A python package for PIV image analysis

2011-04-25 Thread Alex Liberzon
, I am not aware of the open source and free ones. Would you join our team? Best regards, Alex Liberzon Turbulence Structure Laboratory [http://www.eng.tau.ac.il/turbulencelab] School of Mechanical Engineering Tel Aviv University Le dimanche 24 avril 2011 ? 16:53 +0200, Davide a ?crit : Hi

[Numpy-discussion] division operator

2011-04-04 Thread Alex Ter-Sarkissov
I have 2 variables, say var1=10,var2=100. To divide I do either divide(float(var1),float(var2)) or simply float(var1)/float(var2). I'm just wondering if there's a smarter way of doing this? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

[Numpy-discussion] random number genration

2011-03-31 Thread Alex Ter-Sarkissov
thanks Sturl, your second code works well although I had to divide the vector elements through 128 to get just the binaries ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] random number genration

2011-03-29 Thread Alex Ter-Sarkissov
If I want to generate a string of random bits with equal probability I run random.randint(0,2,size). What if I want a specific proportion of bits? In other words, each bit is 1 with probability p1/2 and 0 with probability q=1-p? thanks ___

[Numpy-discussion] (no subject)

2011-03-02 Thread Alex Ter-Sarkissov
. I'd be glad if any1 could have any suggestions in this regard. cheers, Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] float conversion

2011-01-16 Thread Alex Ter-Sarkissov
) returns TypeError: float() argument must be a string or a number Any ideas what to do with this (e.g. convert to floating numbers)? cheers, Alex ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy

[Numpy-discussion] http://mail.scipy.org/pipermail/numpy-discussion/2011-January/054512.html

2011-01-16 Thread Alex Ter-Sarkissov
hi thanks I've sorted ou the issue Alex ___ 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-19 Thread Alex Ter-Sarkissov
thanks, this didn't seem to work. I get a whole range of errors, most importantly SystemError: Cannot compiler 'Python.h'. Perhaps you need to install python-dev|python-devel. Apparently, according to numpy installation guide

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-19 Thread Alex Ter-Sarkissov
thanks! it actually worked! maybe u could recommend some good sources/readin on how to install different modules in python run under linux thanks again, alex 2010/10/19 Pauli Virtanen p...@iki.fi Tue, 19 Oct 2010 21:26:38 +1300, Alex Ter-Sarkissov wrote: thanks, this didn't seem to work. I

[Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Alex Ter-Sarkissov
hi everyone, i'm very new to ubuntu, now trying to install numpy and wxpython. Having unpacked numpy and running the standard commnad in idle from numpy import * i get the message ImportError: Error importing numpy: you should not try to import numpy from its source directory; please

[Numpy-discussion] array manipulation

2010-08-16 Thread Alex Ter-Sarkissov
hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would expect, but rather [5,], which means that I can't,

[Numpy-discussion] numpy.vectorize fails, howto avoid hardcoding parameters?

2010-08-02 Thread Alex Kraus
Hi, I am trying to create a function that calculates the integral of another function. The integral function should later be used in scipy.optimize.leastsq(f, ...), so ideally it should have the format: def f(x, *param) so that it works for a variable number of parameters. While my code

Re: [Numpy-discussion] problem with applying patch

2010-03-15 Thread alex
Pauli Virtanen pav+sp at iki.fi writes: Thank you. the problem is solved ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Problems installing numpy on Mac OS 10.4

2008-02-22 Thread Alex Donaldson
I'm trying to install numpy 1.0.4 on my Intel MacBook Pro with Mac OS 10.4 and running Python 2.5. When I run python setup.py build I get the errors below. Is this a compatibility issue?: Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_4422

Re: [Numpy-discussion] Problems installing numpy on Mac OS 10.4

2008-02-22 Thread Alex Donaldson
Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_4422 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-faltivec',

[Numpy-discussion] PCA - Principal Component Analysis

2007-06-24 Thread Alex Torquato S. Carneiro
I'm doing some projects in Python (system GNU / Linux - Ubuntu 7.0) about image processing. I'm needing a implementation of PCA, prefer to library for apt-get. Thanks. Alex. Novo Yahoo! Cadê

Re: [Numpy-discussion] VMWare Virtual Appliance of Ubuntu with numpy, scipy, matplotlib, and ipython available

2007-06-12 Thread Alex
The instructions here are clear and easy to follow: http://www.spywareinfo.com/articles/vmware/basharing.php Hence, I was able to install the ftp server on Ubuntu and exchange my files in real-time in Windows. I use vsftpd on Ubuntu and Wincp on Windows. best Alex On Jun 11, 7:18 pm, Bill Baxter