Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 7:49 PM, wrote: > On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris > wrote: >> >> >> On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern wrote: >>> >>> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >>> > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki >>> > wrote:

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 7:11 PM, Charles R Harris wrote: > > > On Sat, Feb 23, 2013 at 1:33 PM, Robert Kern wrote: >> >> On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >> > On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki >> > wrote: >> >> Hello, >> >> i know that the array object is a

Re: [Numpy-discussion] Leaking memory problem

2013-02-25 Thread josef . pktd
On Mon, Feb 25, 2013 at 8:41 AM, Jaakko Luttinen wrote: > Hi! > > I was wondering if anyone could help me in finding a memory leak problem > with NumPy. My project is quite massive and I haven't been able to > construct a simple example which would reproduce the problem.. > > I have an iterative a

Re: [Numpy-discussion] Adding .abs() method to the array object

2013-02-23 Thread josef . pktd
On Sat, Feb 23, 2013 at 3:33 PM, Robert Kern wrote: > On Sat, Feb 23, 2013 at 7:25 PM, Nathaniel Smith wrote: >> On Sat, Feb 23, 2013 at 3:38 PM, Till Stensitzki wrote: >>> Hello, >>> i know that the array object is already crowded, but i would like >>> to see the abs method added, especially do

Re: [Numpy-discussion] another discussion on numpy correlate (and convolution)

2013-02-22 Thread josef . pktd
On Thu, Feb 21, 2013 at 1:00 PM, Pierre Haessig wrote: > Hi everybody, > > (just coming from a discussion on the performance of Matplotlib's > (x)corr function which uses np.correlate) > > There have been already many discussions on how to compute > (cross-)correlations of time-series in Python (l

Re: [Numpy-discussion] Where's that function?

2013-02-06 Thread josef . pktd
On Wed, Feb 6, 2013 at 2:45 PM, Benjamin Root wrote: > > > On Wed, Feb 6, 2013 at 1:08 PM, wrote: >> >> I'm convinced that I saw a while ago a function that uses a list of >> interval boundaries to index into an array, either to iterate or to >> take. >> I thought that's very useful, but didn't m

Re: [Numpy-discussion] Where's that function?

2013-02-06 Thread josef . pktd
On Wed, Feb 6, 2013 at 2:17 PM, Sebastian Berg wrote: > On Wed, 2013-02-06 at 13:08 -0500, josef.p...@gmail.com wrote: >> I'm convinced that I saw a while ago a function that uses a list of >> interval boundaries to index into an array, either to iterate or to >> take. >> I thought that's very use

[Numpy-discussion] Where's that function?

2013-02-06 Thread josef . pktd
I'm convinced that I saw a while ago a function that uses a list of interval boundaries to index into an array, either to iterate or to take. I thought that's very useful, but didn't make a note. Now, I have no idea where I saw this (I thought numpy), and I cannot find it anywhere. any clues? Th

Re: [Numpy-discussion] Any plans for windows 64-bit installer for 1.7?

2013-02-04 Thread josef . pktd
On Mon, Feb 4, 2013 at 4:15 PM, Ralf Gommers wrote: > > > > On Mon, Feb 4, 2013 at 10:06 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Mon, Feb 4, 2013 at 12:55 PM, Ralf Gommers >> wrote: >> > >> > >> > >> > On Mon, Feb 4, 2013 at 9:39 PM, Nathaniel Smith wrote: >> >> >> >> On Mon, Feb 4, 2013

Re: [Numpy-discussion] Any plans for windows 64-bit installer for 1.7?

2013-02-02 Thread josef . pktd
On Sat, Feb 2, 2013 at 6:14 PM, Matthew Brett wrote: > Hi, > > I see there is no Windows 64 bit installer for the 1.7 rc1. related: Is there any chance to get newer mingw or mingw-w64 support "soonish"? Josef > > Is there any prospect of a 64 bit installer for the full release? > > Can I help?

Re: [Numpy-discussion] Installing numpy-mkl binary on top of Python(x, y)

2013-01-27 Thread josef . pktd
On Sun, Jan 27, 2013 at 2:54 PM, Christoph Gohlke wrote: > On 1/27/2013 11:40 AM, olli.wal...@elisanet.fi wrote: >> Hi, >> >> if I want to have a painless Python installation build against Intel MKL on >> Windows, one obvious choice is to just buy the EPD package. However, >> as I already do have

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-17 Thread josef . pktd
On Thu, Jan 17, 2013 at 10:24 AM, wrote: > On Thu, Jan 17, 2013 at 9:49 AM, Benjamin Root wrote: >> >> >> On Thu, Jan 17, 2013 at 8:54 AM, Jim Vickroy wrote: >>> >>> On 1/16/2013 11:41 PM, Nathaniel Smith wrote: >>> >>> On 16 Jan 2013 17:54, wrote: >>> > >>> a = np.random.random_integers(0, 5,

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-17 Thread josef . pktd
On Thu, Jan 17, 2013 at 9:49 AM, Benjamin Root wrote: > > > On Thu, Jan 17, 2013 at 8:54 AM, Jim Vickroy wrote: >> >> On 1/16/2013 11:41 PM, Nathaniel Smith wrote: >> >> On 16 Jan 2013 17:54, wrote: >> > >>> a = np.random.random_integers(0, 5, size=5) >> > >>> b = a.sort() >> > >>> b >> > >>> a

Re: [Numpy-discussion] Casting Bug or a "Feature"?

2013-01-17 Thread josef . pktd
On Thu, Jan 17, 2013 at 2:34 AM, Matthieu Brucher wrote: > Hi, > > Actually, this behavior is already present in other languages, so I'm -1 on > additional verbosity. > Of course a += b is not the same as a = a + b. The first one modifies the > object a, the second one creates a new object and put

Re: [Numpy-discussion] Casting Bug or a "Feature"?

2013-01-16 Thread josef . pktd
On Wed, Jan 16, 2013 at 10:43 PM, Patrick Marsh wrote: > Thanks, everyone for chiming in. Now that I know this behavior exists, I > can explicitly prevent it in my code. However, it would be nice if a warning > or something was generated to alert users about the inconsistency between > var += ...

Re: [Numpy-discussion] Shouldn't all in-place operations simply return self?

2013-01-16 Thread josef . pktd
On Wed, Jan 16, 2013 at 7:11 PM, eat wrote: > Hi, > > In a recent thread > http://article.gmane.org/gmane.comp.python.numeric.general/52772 it was > proposed that .fill(.) should return self as an alternative for a trivial > two-liner. > > I'm raising now the question: what if all in-place operati

Re: [Numpy-discussion] New numpy functions: filled, filled_like

2013-01-14 Thread josef . pktd
On Mon, Jan 14, 2013 at 11:22 AM, wrote: > On Mon, Jan 14, 2013 at 11:15 AM, Olivier Delalleau wrote: >> 2013/1/14 Matthew Brett : >>> Hi, >>> >>> On Mon, Jan 14, 2013 at 9:02 AM, Dave Hirschfeld >>> wrote: Robert Kern gmail.com> writes: > > >>> > > >>> > One alternative

Re: [Numpy-discussion] New numpy functions: filled, filled_like

2013-01-14 Thread josef . pktd
On Mon, Jan 14, 2013 at 11:15 AM, Olivier Delalleau wrote: > 2013/1/14 Matthew Brett : >> Hi, >> >> On Mon, Jan 14, 2013 at 9:02 AM, Dave Hirschfeld >> wrote: >>> Robert Kern gmail.com> writes: >>> >>> > >>> > One alternative that does not expand the API with two-liners is to >>>

Re: [Numpy-discussion] New numpy functions: filled, filled_like

2013-01-13 Thread josef . pktd
On Sun, Jan 13, 2013 at 12:27 PM, Nathaniel Smith wrote: > Hi all, > > PR 2875 adds two new functions, that generalize zeros(), ones(), > zeros_like(), ones_like(), by simply taking an arbitrary fill value: > https://github.com/numpy/numpy/pull/2875 > So > np.ones((10, 10)) > is the same as >

Re: [Numpy-discussion] Linear least squares

2013-01-08 Thread josef . pktd
On Tue, Jan 8, 2013 at 1:17 PM, Till Stensitz wrote: > Hi, > i did some profiling and testing of my data-fitting code. > One of its core parts is doing some linear least squares, > until now i used np.linalg.lstsq. Most of time the size > a is (250, 7) and of b is (250, 800). My guess is that thi

Re: [Numpy-discussion] high dimensional array -> python scalar/index

2013-01-06 Thread josef . pktd
On Sun, Jan 6, 2013 at 12:57 PM, Sebastian Berg wrote: > Question for everyone, is this really reasonable: > import numpy as np from operator import index index(np.array([[5]])) > 5 int(np.array([[5]])) > 5 [0,1,2,3][np.array([[2]])] > 2 Not sure I understand the point l

Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread josef . pktd
On Mon, Dec 10, 2012 at 9:46 PM, wrote: > On Mon, Dec 10, 2012 at 8:54 PM, wrote: >> On Mon, Dec 10, 2012 at 8:26 PM, Charles R Harris >> wrote: >>> >>> On Mon, Dec 10, 2012 at 5:39 PM, wrote: >>> np.__version__ '1.6.2' >>> aa array([1970-01-13 96:00:00, 1970-01-13 12

Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread josef . pktd
On Mon, Dec 10, 2012 at 8:54 PM, wrote: > On Mon, Dec 10, 2012 at 8:26 PM, Charles R Harris > wrote: >> >> On Mon, Dec 10, 2012 at 5:39 PM, wrote: >>> >>> >>> np.__version__ >>> '1.6.2' >>> >>> aa >>> array([1970-01-13 96:00:00, 1970-01-13 120:00:00, 1970-01-13 144:00:00, >>>1970-01-13

Re: [Numpy-discussion] segfaulting numpy with dot and datetime

2012-12-10 Thread josef . pktd
On Mon, Dec 10, 2012 at 8:26 PM, Charles R Harris wrote: > > On Mon, Dec 10, 2012 at 5:39 PM, wrote: >> >> >>> np.__version__ >> '1.6.2' >> >>> aa >> array([1970-01-13 96:00:00, 1970-01-13 120:00:00, 1970-01-13 144:00:00, >>1970-01-13 168:00:00, 1970-01-13 192:00:00], dtype=datetime64[ns]

[Numpy-discussion] scalars and strange casting

2012-12-03 Thread josef . pktd
A followup on the previous thread on scalar speed. operations with numpy scalars I can *maybe* understand this >>> np.array(2)[()] * [0.5, 1] [0.5, 1, 0.5, 1] but don't understand this >>> np.array(2.+0.1j)[()] * [0.5, 1] __main__:1: ComplexWarning: Casting complex values to real discards the

Re: [Numpy-discussion] Speed bottlenecks on simple tasks - suggested improvement

2012-12-03 Thread josef . pktd
On Mon, Dec 3, 2012 at 6:14 AM, Nathaniel Smith wrote: > On Mon, Dec 3, 2012 at 1:28 AM, Raul Cota wrote: >> I finally decided to track down the problem and I started by getting >> Python 2.6 from source and profiling it in one of my cases. By far the >> biggest bottleneck came out to be PyString

Re: [Numpy-discussion] the mean, var, std of empty arrays

2012-11-22 Thread josef . pktd
On Thu, Nov 22, 2012 at 10:15 AM, Sebastian Berg wrote: > On Thu, 2012-11-22 at 16:05 +0100, Daπid wrote: >> On Thu, Nov 22, 2012 at 3:54 PM, wrote: >> > Why don't operations on empty arrays not return empty arrays? >> >> Because functions like mean or std are expected to return a scalar. >> Fun

Re: [Numpy-discussion] the mean, var, std of empty arrays

2012-11-22 Thread josef . pktd
On Thu, Nov 22, 2012 at 7:14 AM, Sebastian Berg wrote: > On Wed, 2012-11-21 at 22:58 -0500, josef.p...@gmail.com wrote: >> On Wed, Nov 21, 2012 at 10:35 PM, Charles R Harris >> wrote: >> > >> > >> > On Wed, Nov 21, 2012 at 7:45 PM, wrote: >> >> >> >> On Wed, Nov 21, 2012 at 9:22 PM, Olivier Dela

Re: [Numpy-discussion] the mean, var, std of empty arrays

2012-11-21 Thread josef . pktd
On Wed, Nov 21, 2012 at 10:58 PM, wrote: > On Wed, Nov 21, 2012 at 10:35 PM, Charles R Harris > wrote: >> >> >> On Wed, Nov 21, 2012 at 7:45 PM, wrote: >>> >>> On Wed, Nov 21, 2012 at 9:22 PM, Olivier Delalleau wrote: >>> > Current behavior looks sensible to me. I personally would prefer no >>

Re: [Numpy-discussion] the mean, var, std of empty arrays

2012-11-21 Thread josef . pktd
On Wed, Nov 21, 2012 at 10:35 PM, Charles R Harris wrote: > > > On Wed, Nov 21, 2012 at 7:45 PM, wrote: >> >> On Wed, Nov 21, 2012 at 9:22 PM, Olivier Delalleau wrote: >> > Current behavior looks sensible to me. I personally would prefer no >> > warning >> > but I think it makes sense to have on

Re: [Numpy-discussion] the mean, var, std of empty arrays

2012-11-21 Thread josef . pktd
On Wed, Nov 21, 2012 at 9:22 PM, Olivier Delalleau wrote: > Current behavior looks sensible to me. I personally would prefer no warning > but I think it makes sense to have one as it can be helpful to detect issues > faster. I agree that nan should be the correct answer. (I gave up trying to defi

Re: [Numpy-discussion] strange behavior of numpy.unique

2012-11-07 Thread josef . pktd
On Tue, Nov 6, 2012 at 9:52 PM, Warren Weckesser wrote: > > > On Tue, Nov 6, 2012 at 8:27 PM, Phillip Feldman > wrote: >> >> numpy.unique behaves as I would expect for small inputs like the >> following: >> >> In [12]: x= [0, 0, 1, 0, 1, 2, 0, 1, 2, 3] >> >> In [13]: unique(x, return_index=True)

Re: [Numpy-discussion] Simple question about scatter plot graph

2012-10-31 Thread josef . pktd
On Wed, Oct 31, 2012 at 8:59 PM, klo uo wrote: > Thanks for your reply > > I suppose, variable length signals are split on equal parts and dominant > harmonic is extracted. Then scatter plot shows this pattern, which has some > low correlation, but I can't abstract what could be concluded from gri

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-26 Thread josef . pktd
On Fri, Oct 26, 2012 at 1:27 AM, David Warde-Farley wrote: > On Fri, Oct 26, 2012 at 1:04 AM, wrote: > >> Fine, I didn't understand that part correctly. >> >> I have no opinion in that case. >> (In statsmodels we only use copy the array method and through np.array().) > > Do you implement __copy

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread josef . pktd
On Thu, Oct 25, 2012 at 11:48 PM, David Warde-Farley wrote: > On Thu, Oct 25, 2012 at 8:39 PM, wrote: >> On Thu, Oct 25, 2012 at 6:58 PM, David Warde-Farley >> wrote: >>> On Thu, Oct 25, 2012 at 6:15 PM, Sebastian Berg >>> wrote: On Thu, 2012-10-25 at 17:48 -0400, David Warde-Farley wrote

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread josef . pktd
On Thu, Oct 25, 2012 at 6:58 PM, David Warde-Farley wrote: > On Thu, Oct 25, 2012 at 6:15 PM, Sebastian Berg > wrote: >> On Thu, 2012-10-25 at 17:48 -0400, David Warde-Farley wrote: > >> Don't worry about that failure on Travis... It happens randomly on at >> the moment and its unrelated to anyth

Re: [Numpy-discussion] np.linalg.lstsq with several columns all 0 => huge x ?

2012-10-24 Thread josef . pktd
On Wed, Oct 24, 2012 at 1:33 PM, denis wrote: > Folks, >np.linalg.lstsq of a random-uniform A 50 x 32 with 3 columns all 0 > returns x[:3] 0 as expected, > but 4 columns all 0 => huge x: > lstsq (50, 32) with 4 columns all 0: > [ -3.7e+09 -3.6e+13 -1.9e+13 -2.9e+12 7.3e-01 ... > > Thi

Re: [Numpy-discussion] set_printoptions precision and single floats

2012-10-07 Thread josef . pktd
On Sun, Oct 7, 2012 at 6:36 PM, Dan Goodman wrote: > On 06/10/2012 18:17, Ralf Gommers wrote: >> Do you mean scalars or arrays? For me set_printoptions only affects >> arrays and not scalars. Both float32 and float64 arrays work as advertised: > > Yep, I mean scalars (although as Warren noted, it

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread josef . pktd
On Fri, Sep 21, 2012 at 5:39 PM, Nathaniel Smith wrote: > On Fri, Sep 21, 2012 at 9:42 PM, Ralf Gommers wrote: >> Eh, just installing numpy with "python setup.py install" uses plain >> distutils, not setuptools. So there indeed isn't an entry in >> easy-install.pth. Which some consider a feature

Re: [Numpy-discussion] Mysterious test_pareto failure on Travis

2012-09-04 Thread josef . pktd
On Tue, Sep 4, 2012 at 5:49 PM, Ondřej Čertík wrote: > On Tue, Sep 4, 2012 at 1:48 PM, wrote: >> On Tue, Sep 4, 2012 at 4:37 PM, Nathaniel Smith wrote: >>> On Tue, Sep 4, 2012 at 9:17 PM, Ondřej Čertík >>> wrote: On Tue, Sep 4, 2012 at 12:41 PM, Ondřej Čertík wrote: > On Tue,

Re: [Numpy-discussion] Mysterious test_pareto failure on Travis

2012-09-04 Thread josef . pktd
On Tue, Sep 4, 2012 at 4:37 PM, Nathaniel Smith wrote: > On Tue, Sep 4, 2012 at 9:17 PM, Ondřej Čertík wrote: >> On Tue, Sep 4, 2012 at 12:41 PM, Ondřej Čertík >> wrote: >>> On Tue, Sep 4, 2012 at 12:31 PM, Ondřej Čertík >>> wrote: On Tue, Sep 4, 2012 at 3:15 AM, Nathaniel Smith wrote:

Re: [Numpy-discussion] ANN: NumPy 1.7.0b1 release

2012-08-21 Thread josef . pktd
On Tue, Aug 21, 2012 at 3:59 PM, Christoph Gohlke wrote: > On 8/21/2012 9:24 AM, Ondřej Čertík wrote: >> Hi, >> >> I'm pleased to announce the availability of the first beta release of >> NumPy 1.7.0b1. >> >> Sources and binary installers can be found at >> https://sourceforge.net/projects/numpy/f

Re: [Numpy-discussion] Correlated distributions (?)

2012-08-16 Thread josef . pktd
On Thu, Aug 16, 2012 at 3:27 PM, Andrea Gavana wrote: > Hi All, > > once again, my apologies for a (possibly) very ignorant question, > my google-fu is failing me... also because I am not sure of what > exactly I should look for. > > My problem is relatively simple. Let's assume I have two Pyt

Re: [Numpy-discussion] QQ Plot in Python and Noncentral Chisquare

2012-08-16 Thread josef . pktd
On Thu, Aug 16, 2012 at 9:05 AM, Yi, Chuang wrote: > Thank you Josef, df can be less than 1 as long as it is nonnegative: > > http://stat.ethz.ch/R-manual/R-patched/library/stats/html/Chisquare.html > > Here is an example in R: > >> Z0<-rchisq(2,df=0.5,ncp =2) >> Z0 > [1] 0.5056454 2.0427540 > > T

Re: [Numpy-discussion] QQ Plot in Python and Noncentral Chisquare

2012-08-15 Thread josef . pktd
On Wed, Aug 15, 2012 at 1:46 PM, Ralf Gommers wrote: > > > On Wed, Aug 15, 2012 at 4:59 PM, Yi, Chuang > wrote: >> >> Hello, >> >> >> >> I am a new user of Python. I have a couple of questions that would >> appreciate your guidance! >> >> >> >> QQ Plot in Python: I could not find any functions in

Re: [Numpy-discussion] QQ Plot in Python and Noncentral Chisquare

2012-08-15 Thread josef . pktd
On Wed, Aug 15, 2012 at 10:59 AM, Yi, Chuang wrote: > Hello, > > > > I am a new user of Python. I have a couple of questions that would > appreciate your guidance! > > > > QQ Plot in Python: I could not find any functions in either Numpy or Scipy > to do QQ Plot of two vectors of data. For example

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread josef . pktd
On Fri, Aug 10, 2012 at 11:41 AM, wrote: > > > On Fri, Aug 10, 2012 at 10:00 AM, Travis Oliphant wrote: > >> >> On Aug 10, 2012, at 5:37 AM, Paul Anton Letnes wrote: >> >> > >> > >> > On 10. aug. 2012, at 09:54, Mark Bakker wrote: >> > >> >> I am giving this a second try. Can anybody help me out?

Re: [Numpy-discussion] Second try: possible bug in assignment to complex array

2012-08-10 Thread josef . pktd
On Fri, Aug 10, 2012 at 10:00 AM, Travis Oliphant wrote: > > On Aug 10, 2012, at 5:37 AM, Paul Anton Letnes wrote: > > > > > > > On 10. aug. 2012, at 09:54, Mark Bakker wrote: > > > >> I am giving this a second try. Can anybody help me out? > >> > >> I think there is a problem with assigning a 1D

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread josef . pktd
On Mon, Jul 2, 2012 at 10:53 PM, Fernando Perez wrote: > On Mon, Jul 2, 2012 at 7:49 PM, Fernando Perez wrote: >> It appears you're right! nice idea: https://github.com/pymc-devs/pymc/blob/master/pymc/distributions.py#L1670 >> >> http://pymc-devs.github.com/pymc/distributions.html?highlight=h

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread josef . pktd
On Mon, Jul 2, 2012 at 8:08 PM, wrote: > On Mon, Jul 2, 2012 at 4:16 PM, Fernando Perez wrote: >> Hi all, >> >> in recent work with a colleague, the need came up for a multivariate >> hypergeometric sampler; I had a look in the numpy code and saw we have >> the bivariate version, but not the mul

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread josef . pktd
On Mon, Jul 2, 2012 at 4:16 PM, Fernando Perez wrote: > Hi all, > > in recent work with a colleague, the need came up for a multivariate > hypergeometric sampler; I had a look in the numpy code and saw we have > the bivariate version, but not the multivariate one. > > I had a look at the code in s

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-30 Thread josef . pktd
On Sat, Jun 30, 2012 at 5:02 PM, T J wrote: > On Sat, Jun 30, 2012 at 1:50 PM, srean wrote: >> >> >> Anecdotal data-point: >> I have been  happy with SO in general. It works for certain types of >> queries very well. OTOH if the answer to the question is known only to >> a few and he/she does not

Re: [Numpy-discussion] Meta: help, devel and stackoverflow

2012-06-30 Thread josef . pktd
just some statistics http://stackoverflow.com/questions/tagged/numpy 769 followers, 2,850 questions tagged a guess: average response time for regular usage question far less than an hour http://stackoverflow.com/questions/tagged/scipy 446 followers, 991questions tagged http://stackoverflow.co

Re: [Numpy-discussion] NumPy 1.7 release delays

2012-06-30 Thread josef . pktd
On Sat, Jun 30, 2012 at 1:52 AM, Matthew Brett wrote: > Hi, > > On Wed, Jun 27, 2012 at 12:38 AM, Christoph Gohlke wrote: >> On 6/26/2012 8:13 PM, Travis Oliphant wrote: For the main repos we use buildbot and test on: Ubuntu Maverick 32-bit Debian sid 64-bit OSX 10.4 PPC

Re: [Numpy-discussion] Created NumPy 1.7.x branch

2012-06-25 Thread josef . pktd
On Mon, Jun 25, 2012 at 11:10 PM, Ondřej Čertík wrote: > On Mon, Jun 25, 2012 at 7:38 PM, Fernando Perez wrote: >> On Mon, Jun 25, 2012 at 6:39 PM, Travis Oliphant wrote: >>> >>> On Jun 25, 2012, at 7:21 PM, Fernando Perez wrote: >> >>> >>> For context, consider that for many years, the word "gr

Re: [Numpy-discussion] Created NumPy 1.7.x branch

2012-06-25 Thread josef . pktd
On Mon, Jun 25, 2012 at 9:50 PM, Travis Oliphant wrote: > > On Jun 25, 2012, at 7:53 PM, josef.p...@gmail.com wrote: > >> On Mon, Jun 25, 2012 at 8:25 PM,   wrote: >>> On Mon, Jun 25, 2012 at 8:10 PM, Travis Oliphant >>> wrote: You are still missing the point that there was already a choice

Re: [Numpy-discussion] Created NumPy 1.7.x branch

2012-06-25 Thread josef . pktd
On Mon, Jun 25, 2012 at 8:25 PM, wrote: > On Mon, Jun 25, 2012 at 8:10 PM, Travis Oliphant wrote: >> You are still missing the point that there was already a choice that was >> made in the previous class --- made in Numeric actually. >> >> You made a change to that.  It is the change that is 'gr

Re: [Numpy-discussion] Created NumPy 1.7.x branch

2012-06-25 Thread josef . pktd
On Mon, Jun 25, 2012 at 8:10 PM, Travis Oliphant wrote: > You are still missing the point that there was already a choice that was > made in the previous class --- made in Numeric actually. > > You made a change to that.  It is the change that is 'gratuitous'.  The pain > and unnecessary overhead

Re: [Numpy-discussion] Matrix rank default tolerance - is it too low?

2012-06-16 Thread josef . pktd
On Sat, Jun 16, 2012 at 4:39 PM, Nathaniel Smith wrote: > On Sat, Jun 16, 2012 at 9:03 PM, Matthew Brett > wrote: >> Hi, >> >> On Sat, Jun 16, 2012 at 10:40 AM, Nathaniel Smith wrote: >>> On Fri, Jun 15, 2012 at 4:10 AM, Charles R Harris >>> wrote: On Thu, Jun 14, 2012 at 8:06 P

Re: [Numpy-discussion] convert to string - astype(str)

2012-06-10 Thread josef . pktd
On Sun, Jun 10, 2012 at 2:17 AM, Travis Oliphant wrote: > > On Jun 9, 2012, at 4:45 PM, josef.p...@gmail.com wrote: > >> Is there a way to convert an array to string elements in numpy, >> without knowing the string length? > > Not really.   In the next release of NumPy you should be able to do. >

[Numpy-discussion] convert to string - astype(str)

2012-06-09 Thread josef . pktd
Is there a way to convert an array to string elements in numpy, without knowing the string length? >>> arr2 = np.arange(8, 13) >>> arr2.astype(str) # bad array(['8', '9', '1', '1', '1'], dtype='|S1') >>> arr2.astype('S2') array(['8', '9', '10', '11', '12'], dtype='|S2') >>> map(s

Re: [Numpy-discussion] 1.6.2 no more unique for rows

2012-05-30 Thread josef . pktd
On Wed, May 30, 2012 at 5:55 PM, Ralf Gommers wrote: > > > On Wed, May 30, 2012 at 5:39 PM, Charles R Harris > wrote: >> >> >> >> On Wed, May 30, 2012 at 4:59 AM, Nathaniel Smith wrote: >>> >>> On Tue, May 29, 2012 at 7:42 PM, Charles R Harris >>> wrote: >>> > >>> > >>> > On Mon, May 28, 2012 a

[Numpy-discussion] 1.6.2 no more unique for rows

2012-05-28 Thread josef . pktd
https://github.com/numpy/numpy/commit/74b9f5eef8fac643bf9012dbb2ac6b4b19f46892 broke return_inverse for structured arrays, because of the use of mergesort I'm using structured dtypes to get uniques and return_inverse by rows >>> groups = np.random.randint(0,4,size=(10,2)) >>> groups_ = groups.vie

Re: [Numpy-discussion] Checking for views (was: Should arr.diagonal() return a copy or aview?)

2012-05-24 Thread josef . pktd
On Thu, May 24, 2012 at 1:59 PM, Nathaniel Smith wrote: > On Thu, May 24, 2012 at 6:07 PM, Larsen, Brian A wrote: >> This is the stack overflow discussion mentioned. >> >> http://stackoverflow.com/questions/9164269/can-you-tell-if-an-array-is-a-view-of-another >> >> I basically implemented the an

Re: [Numpy-discussion] Internationalization of numpy/scipy docstrings...

2012-05-22 Thread josef . pktd
On Tue, May 22, 2012 at 10:51 AM, Tim Cera wrote: >>> >> Docstrings are not stored in .rst files but in the numpy sources, so there >> are some non-trivial technical and workflow details missing here. But >> besides that, I think translating everything (even into a single language) >> is a massive

Re: [Numpy-discussion] [numpy.testing] re-import when using coverage

2012-05-16 Thread josef . pktd
On Wed, May 16, 2012 at 11:05 AM, Fabrice Silva wrote: > Hi, > I am getting into troubles when using numpy.testing with coverage. A > minimal example package is atached to this email. Unpack and run: > > $ python -c "import mypackage; mypackage.test(verbose=10,coverage=False)" > $ python -c "impor

Re: [Numpy-discussion] How to run NumPy's tests with coverage?

2012-05-06 Thread josef . pktd
On Sun, May 6, 2012 at 4:39 PM, Ralf Gommers wrote: > > > On Sun, May 6, 2012 at 9:08 PM, Chris Ball wrote: >> >> Hi, >> >> I'm trying to figure out how to run NumPy's tests with coverage enabled >> (i.e. >> numpy.test(coverage=True) ). I can run the tests successfully like this: > > > This seems

Re: [Numpy-discussion] Issue Tracking

2012-05-01 Thread josef . pktd
On Tue, May 1, 2012 at 8:29 PM, Fernando Perez wrote: > On Tue, May 1, 2012 at 5:24 PM, Charles R Harris > wrote: >> I would agree that a good search facility is essential, and not keyword/tag >> based. > > Github issues does have full-text search, and up until now I haven't > really had too many

Re: [Numpy-discussion] Issue Tracking

2012-05-01 Thread josef . pktd
On Tue, May 1, 2012 at 7:48 PM, Pauli Virtanen wrote: > 01.05.2012 21:34, Ralf Gommers kirjoitti: > [clip] >> At this point it's probably good to look again at the problems we want >> to solve: >> 1. responsive user interface (must absolutely have) > > Now that it comes too late: with some luck, I

Re: [Numpy-discussion] Alternative to R phyper

2012-04-30 Thread josef . pktd
On Mon, Apr 30, 2012 at 7:27 AM, Robert Kern wrote: > On Mon, Apr 30, 2012 at 12:09, Bruno Santos wrote: >> Hello everyone, >> >> I have a bit of code where I am using rpy2 to import R phyper so I can >> perform an hypergeometric test. Unfortunately our cluster does not have a >> functional insta

[Numpy-discussion] ANN: statsmodels 0.4.0

2012-04-27 Thread josef . pktd
We are pleased to announce the release of statsmodels 0.4.0. The big changes in this release are that most models can now be used with Pandas dataframes, and that we dropped the scikits namespace. Importing scikits.statsmodels is still possible but will be removed in the future. Pandas is now a re

Re: [Numpy-discussion] A crazy masked-array thought

2012-04-27 Thread josef . pktd
On Fri, Apr 27, 2012 at 10:33 AM, Charles R Harris wrote: > > > On Fri, Apr 27, 2012 at 8:15 AM, Charles R Harris > wrote: >> >> >> >> On Wed, Apr 25, 2012 at 9:58 AM, Richard Hattersley >> wrote: >>> >>> The masked array discussions have brought up all sorts of interesting >>> topics - too many

Re: [Numpy-discussion] What is consensus anyway

2012-04-25 Thread josef . pktd
On Wed, Apr 25, 2012 at 7:08 PM, Matthew Brett wrote: > Hi, > > On Wed, Apr 25, 2012 at 3:24 PM,   wrote: >> On Wed, Apr 25, 2012 at 5:54 PM, Matthew Brett >> wrote: >>> Hi, >>> >>> On Wed, Apr 25, 2012 at 2:35 PM, Travis Oliphant >>> wrote: > > Do you agree that Numpy has not been ver

Re: [Numpy-discussion] What is consensus anyway

2012-04-25 Thread josef . pktd
On Wed, Apr 25, 2012 at 5:54 PM, Matthew Brett wrote: > Hi, > > On Wed, Apr 25, 2012 at 2:35 PM, Travis Oliphant wrote: >>> >>> Do you agree that Numpy has not been very successful in recruiting and >>> maintaining new developers compared to its large user-base? >>> >>> Compared to - say - Sympy?

Re: [Numpy-discussion] What is consensus anyway

2012-04-24 Thread josef . pktd
On Wed, Apr 25, 2012 at 12:25 AM, Travis Oliphant wrote: > > On Apr 24, 2012, at 10:50 PM, Charles R Harris wrote: > > > > On Tue, Apr 24, 2012 at 9:28 PM, Fernando Perez > wrote: >> >> On Tue, Apr 24, 2012 at 8:02 PM, Charles R Harris >> wrote: >> > Fernando, I'm not checking credentials, I'm c

Re: [Numpy-discussion] What is consensus anyway

2012-04-24 Thread josef . pktd
On Tue, Apr 24, 2012 at 11:28 PM, Fernando Perez wrote: > On Tue, Apr 24, 2012 at 8:02 PM, Charles R Harris > wrote: >> Fernando, I'm not checking credentials, I'm curious. > > Well, at least I think that an inquisitive query about someone's > background, phrased like that, can be very easily mis

Re: [Numpy-discussion] What is consensus anyway

2012-04-24 Thread josef . pktd
On Tue, Apr 24, 2012 at 2:35 PM, Benjamin Root wrote: > On Tue, Apr 24, 2012 at 2:12 PM, Charles R Harris > wrote: >> >> >> >> On Tue, Apr 24, 2012 at 9:25 AM, wrote: >>> >>> On Tue, Apr 24, 2012 at 9:43 AM, Pierre Haessig >>> wrote: >>> > Hi, >>> > >>> > Le 24/04/2012 15:14, Charles R Harris a

Re: [Numpy-discussion] What is consensus anyway

2012-04-24 Thread josef . pktd
On Tue, Apr 24, 2012 at 9:43 AM, Pierre Haessig wrote: > Hi, > > Le 24/04/2012 15:14, Charles R Harris a écrit : >> >> a) All arrays should be implicitly masked, even if the mask isn't >> initially allocated. The maskna keyword can then be removed, taking >> with it the sense that there are two ki

Re: [Numpy-discussion] documentation bug: Matrix library page not populated

2012-04-23 Thread josef . pktd
On Mon, Apr 23, 2012 at 2:05 PM, Ralf Gommers wrote: > > > On Thu, Apr 19, 2012 at 3:12 AM, wrote: >> >> On Wed, Apr 18, 2012 at 4:14 PM, Pauli Virtanen wrote: >> > Hi, >> > >> > 18.04.2012 19:57, Alan G Isaac kirjoitti: >> >> >> >> http://docs.scipy.org/doc/numpy/reference/routines.matlib.html#

Re: [Numpy-discussion] documentation bug: Matrix library page not populated

2012-04-18 Thread josef . pktd
On Wed, Apr 18, 2012 at 4:14 PM, Pauli Virtanen wrote: > Hi, > > 18.04.2012 19:57, Alan G Isaac kirjoitti: >> http://docs.scipy.org/doc/numpy/reference/routines.matlib.html#module-numpy.matlib >> promises a list of functions that does not appear (at the moment, anyway). > > This doesn't seem to be

Re: [Numpy-discussion] One question about the numpy.linalg.eig() routine

2012-04-02 Thread josef . pktd
2012/4/2 Hongbin Zhang : > Dear Python-users, > > I am currently very confused about the Scipy routine to obtain the > eigenvectors of a complex matrix. > In attached you find two files to diagonalize a 2X2 complex Hermitian > matrix, however, on my computer, > > If I run python, I got: > > [[ 0.80

Re: [Numpy-discussion] weird searchsorted behavior for unicode array

2012-03-28 Thread josef . pktd
On Wed, Mar 28, 2012 at 11:51 AM, wrote: > On Wed, Mar 28, 2012 at 10:55 AM, Thouis (Ray) Jones wrote: >> I am seeing some very strange behavior searching a unicode array.  The >> attached code outputs the following: >> UNICODE >> Is sorted: True >> Search sorted by iteration, left: [0, 1, 2, 4,

Re: [Numpy-discussion] weird searchsorted behavior for unicode array

2012-03-28 Thread josef . pktd
On Wed, Mar 28, 2012 at 10:55 AM, Thouis (Ray) Jones wrote: > I am seeing some very strange behavior searching a unicode array.  The > attached code outputs the following: > UNICODE > Is sorted: True > Search sorted by iteration, left: [0, 1, 2, 4, 4, 6, 6, 8, 8, 10, 10, > 12, 12, 13] > Search sor

Re: [Numpy-discussion] different percentile implementations ?

2012-03-28 Thread josef . pktd
On Wed, Mar 28, 2012 at 5:44 AM, Pierre Haessig wrote: > Le 27/03/2012 18:56, josef.p...@gmail.com a écrit : >> similar to std, var, histogram, ... some functions from scipy.stats >> are now in numpy. > Ok, historical reasons then. Fair enough. > Would a "See also: numpy.percentile" make sense in

Re: [Numpy-discussion] different percentile implementations ?

2012-03-27 Thread josef . pktd
On Sun, Mar 25, 2012 at 6:30 PM, Pierre Haessig wrote: > Hi, > > A quick question I've had in mind for some time but didn't find a solution : > Is there a significant difference between "numpy.percentile" and > "scipy.stats.scoreatpercentile" ? > > Of course the signatures are somewhat different,

[Numpy-discussion] GSoC 2012

2012-03-25 Thread josef . pktd
What happened to any plans for GSOC? http://wiki.python.org/moin/SummerOfCode/2012 Josef ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] float96 on windows32 is float64?

2012-03-16 Thread josef . pktd
On Fri, Mar 16, 2012 at 2:10 AM, Ilan Schnell wrote: > I just did a quick test across all supported EPD platforms: > win-64: float96 No, float128 No > win-32: float96 No, float128 No > osx-64: float96 No, float128 Yes > osx-32: float96 No, float128 Yes > rh3-64: float96 No, float128 Yes > rh3-32:

Re: [Numpy-discussion] Github key audit.

2012-03-07 Thread josef . pktd
On Wed, Mar 7, 2012 at 1:54 PM, Charles R Harris wrote: > Hi All, > > Many here have probably received the message from github about push/pull > access being blocked until you have auditied your ssh keys. To generate a > key fingerprint on fedora, I did the following: > > $charris@f16 ~$ ssh-keyge

Re: [Numpy-discussion] all elements equal

2012-03-05 Thread josef . pktd
On Mon, Mar 5, 2012 at 2:33 PM, Olivier Delalleau wrote: > Le 5 mars 2012 14:29, Keith Goodman a écrit : > >> On Mon, Mar 5, 2012 at 11:24 AM, Neal Becker wrote: >> > Keith Goodman wrote: >> > >> >> On Mon, Mar 5, 2012 at 11:14 AM, Neal Becker >> >> wrote: >> >>> What is a simple, efficient way

Re: [Numpy-discussion] verbose output when running python script?

2012-03-05 Thread josef . pktd
On Mon, Mar 5, 2012 at 10:27 AM, Chao YUE wrote: > Dear all, > > Sorry this is not the good place to ask but I think there must be someone > who has done this before. > Is there any way to see the execution of python script line by line as the > verbose model of shell script? > this can be done ei

Re: [Numpy-discussion] Jaccard & Hamming Problem

2012-03-01 Thread josef . pktd
On Thu, Mar 1, 2012 at 10:10 AM, Zayd YAKOUBI wrote: > thank you very much, > In fact, the functions of these two measures are  for binary vectors, and I > have not found their extension to real data such as: 0.7, 0.9, 1.7 > Knowing that I applied to this data and it worked well.. > > Have an

Re: [Numpy-discussion] Numpy fitting

2012-03-01 Thread josef . pktd
On Thu, Mar 1, 2012 at 10:39 AM, Olivier Delalleau wrote: > Sorry I can't help, but I'd just suggest to post this on the scipy mailing > list as you may get more replies there. > > -=- Olivier > > Le 1 mars 2012 10:24, Pierre Barthelemy a écrit : >> >> Dear all, >> >> i am writing a program for d

[Numpy-discussion] log relative error

2012-02-26 Thread josef . pktd
(I got distracted by some numerical accuracy checks. np.polyfit looks good in NIST test.) Does numpy have something like this? def lre(actual, desired): '''calculate log relative error, number of correct significant digits not an informative function name Parameters --

Re: [Numpy-discussion] The end of numpy as we know it ?

2012-02-18 Thread josef . pktd
On Sat, Feb 18, 2012 at 2:14 PM, Matthew Brett wrote: > Hi, > > On Sat, Feb 18, 2012 at 9:06 AM, Dag Sverre Seljebotn > wrote: >> On 02/18/2012 08:52 AM, Benjamin Root wrote: >>> >>> >>> On Saturday, February 18, 2012, Sturla Molden wrote: >>> >>> >>> >>>     Den 18. feb. 2012 kl. 17:12 skrev Ala

[Numpy-discussion] The end of numpy as we know it ?

2012-02-18 Thread josef . pktd
(on a ambiguous day, pessimistic or optimistic?) Numpy is a monster written by a bunch of amateurs (engineers and scientists), with a glacial pace of development. If we want to make any progress to the world dominance of python in science, we need to go professionally about it. First we need to

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-17 Thread josef . pktd
On Fri, Feb 17, 2012 at 9:29 PM, David Cournapeau wrote: > > Le 18 févr. 2012 00:58, "Charles R Harris" a > écrit : > > >> >> >> >> On Fri, Feb 17, 2012 at 4:44 PM, David Cournapeau >> wrote: >>> >>> I don't think c++ has any significant advantage over c for high >>> performance libraries. I am

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread josef . pktd
On Fri, Feb 17, 2012 at 12:54 AM, Benjamin Root wrote: > > > On Thursday, February 16, 2012, John Hunter wrote: >> >> >> >> On Thu, Feb 16, 2012 at 7:26 PM, Alan G Isaac >> wrote: >>> >>> On 2/16/2012 7:22 PM, Matthew Brett wrote: >>> > This has not been an encouraging episode in striving for con

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-16 Thread josef . pktd
On Thu, Feb 16, 2012 at 5:56 PM, Warren Weckesser wrote: > > > On Thu, Feb 16, 2012 at 4:39 PM, Travis Oliphant > wrote: >> >> Mark Wiebe and I have been discussing off and on (as well as talking with >> Charles) a good way forward to balance two competing desires: >> >>        * addition of new

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread josef . pktd
On Thu, Feb 16, 2012 at 12:53 PM, Charles R Harris wrote: > > > On Thu, Feb 16, 2012 at 9:56 AM, Nathaniel Smith wrote: >> >> On Thu, Feb 16, 2012 at 12:27 AM, Dag Sverre Seljebotn >> wrote: >> > If non-contributing users came along on the Cython list demanding that >> > we set up a system to se

Re: [Numpy-discussion] strange behavior of numpy.random.multivariate_normal, ticket:1842

2012-02-16 Thread josef . pktd
On Thu, Feb 16, 2012 at 11:47 AM, wrote: > On Thu, Feb 16, 2012 at 11:30 AM,   wrote: >> On Thu, Feb 16, 2012 at 11:20 AM, Warren Weckesser >> wrote: >>> >>> >>> On Thu, Feb 16, 2012 at 10:12 AM, Pierre Haessig >>> wrote: Le 16/02/2012 16:20, josef.p...@gmail.com a écrit : >

<    1   2   3   4   5   6   7   8   9   10   >