[Numpy-discussion] ANN: Stop plotting your data -- HoloViews 1.4 released!

2016-02-24 Thread James A. Bednar
torials at holoviews.org today! Jean-Luc R. Stevens Philipp Rudiger James A. Bednar Continuum Analytics, Inc., Austin, TX, USA School of Informatics, The University of Edinburgh, UK -- The University of Edinburgh is a charitable body, registered in Scotland, with registration numbe

Re: [Numpy-discussion] Should I use pip install numpy in linux?

2016-01-14 Thread James E.H. Turner
rms. We have also been building on CentOS 5-6 BTW (I believe the former is about to be unsupported). Just skimming the thread... Cheers, James. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal: stop supporting 'setup.py install'; start requiring 'pip install .' instead

2015-10-27 Thread James E.H. Turner
purpose. Just a comment that not every installation is someone trying to get numpy on their laptop... Cheers, James. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Governance model request

2015-09-22 Thread James E.H. Turner
;t like the committee at some point, the project can be forked as an option of last resort. Nothing is set in stone, nor code lost. Just saying (I probably won't reply to any criticism or corrections, to avoid adding peripheral noise/heat to the thread). Cheers, James (from, but not

[Numpy-discussion] ANN: HoloViews 1.3 released

2015-07-03 Thread James A. Bednar
today, and check out our upcoming SciPy and EuroSciPy talks in Austin and Cambridge (or read the paper at http://goo.gl/NH9FTB)! Philipp Rudiger Jean-Luc R. Stevens James A. Bednar The University of Edinburgh School of Informatics -- The University of Edinburgh is a charitable body, registered in Sc

[Numpy-discussion] ANN: HoloViews 1.0 released

2015-03-17 Thread James A. Bednar
mizable without obscuring the underlying data objects - Includes interfaces to pandas and Seaborn - Winner of the 2015 UK Open Source Award For the rest, check out ioam.github.io/holoviews! Jean-Luc Stevens Philipp Rudiger James A. Bednar The University of Edinburgh School of Informatics -- Th

Re: [Numpy-discussion] SFMT (faster mersenne twister)

2014-09-06 Thread James A. Bednar
| Date: Fri, 05 Sep 2014 13:19:57 -0400 | From: Neal Becker | | I think it's somewhat debatable whether generating a different | sequence of random numbers counts as breaking backward | compatibility. Please don't ever, ever break the sequence of numpy's random numbers! Please! We have pu

Re: [Numpy-discussion] Best way to broadcast a function from C

2014-08-22 Thread James Crist
Thu, Aug 21, 2014 at 2:34 AM, James Crist wrote: > > All, > > > > I have a C function func that takes in scalar arguments, and an array of > > fixed dimension that is modified in place to provide the output. The > > prototype is something like: > > &g

[Numpy-discussion] Best way to broadcast a function from C

2014-08-20 Thread James Crist
All, I have a C function func that takes in scalar arguments, and an array of fixed dimension that is modified in place to provide the output. The prototype is something like: `void func(double a, double b, double c, double *arr);` I've wrapped this in Cython and called it from python with no pr

Re: [Numpy-discussion] Funny business with 'is' operator?

2013-09-06 Thread James Bergstra
and slicing). On Fri, Sep 6, 2013 at 12:48 PM, James Bergstra wrote: > Thanks for the tips! FWIW my guess is that since '.data' is dynamically > generated property rather than an attribute, it is being freed and > re-allocated in the loop, and once for each of my id() express

Re: [Numpy-discussion] Funny business with 'is' operator?

2013-09-06 Thread James Bergstra
Thanks, this is exactly what I was looking for. I'll look into what this Diophantine equation is. Also, relatedly, a few months ago Julian Taylor at least wrote what was there in C, which made it faster, if not better. - James On Fri, Sep 6, 2013 at 1:27 PM, Robert Kern wrote: > On Fr

[Numpy-discussion] Funny business with 'is' operator?

2013-09-06 Thread James Bergstra
Hi, could someone help me understand why this assertion fails? def test_is(self): a = np.empty(1) b = np.empty(1) if a.data is not b.data: assert id(a.data) != id(b.data) # <-- fail I'm trying to write an alternate may_share_memory function. Thanks,

Re: [Numpy-discussion] Funny business with 'is' operator?

2013-09-06 Thread James Bergstra
On Fri, Sep 6, 2013 at 10:19 AM, James Bergstra > wrote: > >> Hi, could someone help me understand why this assertion fails? >> >> def test_is(self): >> a = np.empty(1) >> b = np.empty(1) >> if a.data is not b.data: >> assert id(a

[Numpy-discussion] ndarray: How to create and initialize with a value other than ones or zeros?

2013-06-06 Thread James Adams
and then within the section which does the initialization of the array it could use that fill value instead of 1 or 0. Is this a naive assumption? Thanks in advance for your help with this issue. --James ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] Can Numpy use static libraries from LAPACK?

2013-04-21 Thread James Jong
This is how my site.cfg on Linux look like: > > [DEFAULT] > library_dirs = /lib > include_dirs = /include > > [blas_opt] > libraries = f77blas, cblas, atlas > > [lapack_opt] > libraries = lapack, f77blas, cblas, atlas > > - Ilan > > On Sun, Apr 21, 2013

[Numpy-discussion] Can Numpy use static libraries from LAPACK?

2013-04-21 Thread James Jong
Note: I started a thread in StackOverflow a few days ago with this question, but I have not received any response yet (the link is: http://stackoverflow.com/questions/16093910/numpy-and-scipy-static-vs-dynamic-loading ) The question is the following: Say that I build ATLAS with LAPACK as follows:

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 69, Issue 77

2012-06-26 Thread James A. Bednar
| From: Rebekah Pratt | Date: Jun 25 23:59:59 2012 -0400 | | Hey, greetings from orlando! How has re entry to texas been? Our | holiday is going well, although a little fast. The whole disney | experience is cooler than I was expecting. We are all a bit tired | out though, and adah moody as

Re: [Numpy-discussion] automatic differentiation with PyAutoDiff

2012-06-14 Thread James Bergstra
rray assignment... so there's a chance that your example might currently run. (You might even see a speedup if Theano graph optimizations work their magic). It's not clear from the code fragment what the various types in play are (see previous rant on static

Re: [Numpy-discussion] automatic differentiation with PyAutoDiff

2012-06-14 Thread James Bergstra
ecision per time spent. Another thing I was wondering about was periodically re-running the original bytecode on inputs to make sure that the derived bytecode produces the same answer (!). Those two sanity checks would detect the two most scary errors to my mind as a user: a) that autodiff got the o

Re: [Numpy-discussion] automatic differentiation with PyAutoDiff

2012-06-14 Thread James Bergstra
On Thu, Jun 14, 2012 at 3:38 PM, Nathaniel Smith wrote: > On Thu, Jun 14, 2012 at 7:53 PM, James Bergstra > wrote: >> On Thu, Jun 14, 2012 at 11:01 AM, Nathaniel Smith wrote: >> >>>> Indeed that would be great as sympy already has already excellent math >>&

Re: [Numpy-discussion] automatic differentiation with PyAutoDiff

2012-06-14 Thread James Bergstra
d should be relatively small (I'm not counting Theano's function compilation time here, which still can be significant... but that's a separate concern.) - James -- http://www-etud.iro.umontreal.ca/~bergstrj ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] automatic differentiation with PyAutoDiff

2012-06-14 Thread James Bergstra
On Thu, Jun 14, 2012 at 4:00 AM, Olivier Grisel wrote: > 2012/6/13 James Bergstra : >> Further to the recent discussion on lazy evaluation & numba, I moved >> what I was doing into a new project: >> >> PyAutoDiff: >> https://github.com/jaberg/pyautodiff

[Numpy-discussion] automatic differentiation with PyAutoDiff

2012-06-13 Thread James Bergstra
ld then be optimized by e.g. numba or a theano bytecode front-end. For now it just compiles and runs the Theano graph that it built. It's still pretty rough (you'll see if you look at the code!) but I'm excited about it. - James ___ NumP

Re: [Numpy-discussion] lazy evaluation

2012-06-11 Thread James Bergstra
On Mon, Jun 11, 2012 at 12:03 AM, James Bergstra wrote: > If anyone is interested in my ongoing API & bytecode adventure in why > / how lazy computing could be useful, I've put together a few tiny > hypothetically-runnable examples here: > > https://github.com/jaberg/nu

Re: [Numpy-discussion] lazy evaluation

2012-06-10 Thread James Bergstra
de of the main work routines in the numba/ad.py and numba/rv.py files. The linear_svm example was recently using Theano as a backend. I don't think it works right now but FWIW it is still close to running. Sorry for the long post, - James On Wed, Jun 6, 2012 at 5:22 AM, Dag Sverre Seljebotn

Re: [Numpy-discussion] bincount([], minlength=2) should work right?

2012-02-25 Thread James Bergstra
On Sat, Feb 25, 2012 at 5:13 PM, Alan G Isaac wrote: > On 2/25/2012 4:44 PM, James Bergstra wrote: >> bincount([]) makes no sense, > > I disagree: > http://permalink.gmane.org/gmane.comp.python.numeric.general/42041 > gmane is down to me at the moment, but if this argues that

[Numpy-discussion] bincount([], minlength=2) should work right?

2012-02-25 Thread James Bergstra
bincount([]) makes no sense, but if a minlength argument is provided, then the routine should succeed. It fails in 1.6.1, has it been fixed in master? - James -- http://www-etud.iro.umontreal.ca/~bergstrj ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] ndarray and lazy evaluation

2012-02-20 Thread James Bergstra
On Mon, Feb 20, 2012 at 2:57 PM, Lluís wrote: > James Bergstra writes: > [...] > > I should add that the biggest benefit of expressing things as compound > > expressions in this way is not in saving temporaries (though that is > nice) it's > > being able to expr

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-20 Thread James Bergstra
Looks like Dag forked the discussion of lazy evaluation to a new thread ([Numpy-discussion] ndarray and lazy evaluation). There are actually several projects inspired by this sort of design: off the top of my head I can think of Theano, copperhead, numexpr, arguably sympy, and some non-public cod

Re: [Numpy-discussion] ndarray and lazy evaluation

2012-02-20 Thread James Bergstra
On Mon, Feb 20, 2012 at 1:01 PM, James Bergstra wrote: > On Mon, Feb 20, 2012 at 12:28 PM, Francesc Alted wrote: > >> On Feb 20, 2012, at 6:18 PM, Dag Sverre Seljebotn wrote: >> > You need at least a slightly different Python API to get anywhere, so >> > numexpr/The

Re: [Numpy-discussion] ndarray and lazy evaluation

2012-02-20 Thread James Bergstra
brr)) # compute arr and brr as quickly as possible a, b = expr.run() # modify one of the arrays that the expression was compiled to use A[:] += 1 # re-run the compiled expression on the new value a, b = expr.run() - JB -- James Bergstra, Ph.D. Research Scientist Rowland Institute, Harvard

Re: [Numpy-discussion] potential bug in PyArray_MoveInto and PyArray_CopyInto?

2011-07-08 Thread James Bergstra
On Thu, Jul 7, 2011 at 4:59 PM, James Bergstra wrote: > On Thu, Jul 7, 2011 at 1:10 PM, Charles R Harris > wrote: >> >> >> On Thu, Jul 7, 2011 at 11:03 AM, James Bergstra >> wrote: >>> >>> In numpy 1.5.1,  the functions PyArray_MoveInto and Py

Re: [Numpy-discussion] potential bug in PyArray_MoveInto and PyArray_CopyInto?

2011-07-07 Thread James Bergstra
On Thu, Jul 7, 2011 at 1:10 PM, Charles R Harris wrote: > > > On Thu, Jul 7, 2011 at 11:03 AM, James Bergstra > wrote: >> >> In numpy 1.5.1,  the functions PyArray_MoveInto and PyArray_CopyInto >> don't appear to treat strides correctly. >> >>

[Numpy-discussion] potential bug in PyArray_MoveInto and PyArray_CopyInto?

2011-07-07 Thread James Bergstra
f the underlying matrix instead of the first two columns. PyArray_CopyInto does the same. Is there something subtle going on here? James -- http://www-etud.iro.umontreal.ca/~bergstrj ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scip

[Numpy-discussion] f2py on mac

2011-02-07 Thread McEnerney, James F.
On my mac (10.6.5) I'm running python2.6 with numpy 1.5.0. While using f2py with f2py -c --fcompiler=gnu95 --f77flags='-m32 -O1 -fno-second-underscore -fbounds-check' src/mars.pyf src/mars.f It compiles but has link warnings. -m32 is not being passed to gcc. ld: warning: in /var/folders/k-/k-S

Re: [Numpy-discussion] Developer NumPy list versus User NumPy list

2011-01-28 Thread James A. Bednar
| Date: Thu, 27 Jan 2011 16:32:22 -0700 | From: Charles R Harris | | On Thu, Jan 27, 2011 at 4:23 PM, Robert Kern wrote: | | > On Thu, Jan 27, 2011 at 17:17, Travis Oliphant wrote: | > | > > Hey all, | > > | > > What is the thought about having two separate NumPy lists (one | > > f

[Numpy-discussion] numpy.max(0, 1e-6) == 0 (!?)

2011-01-18 Thread James Bergstra
I find that "numpy.max(0, 1e-6) == 0" is confusing, because it makes bugs hard to spot. The doc says that the second argument to max is an optional integer. My bad. But could the function raise an error if it is passed an invalid 'axis' argument? That would have helped.

[Numpy-discussion] match or vectorized in-type function.

2010-07-12 Thread James Bullard
I have two vectors of integers of not necessarily the same length. Consider the hypothetical function match (or if you are familiar to R then consider that function). match(v1, v2) => returns a boolean array of length len(v1) indicating whether element i in v1 is in v2. I cannot find this funct

Re: [Numpy-discussion] zeros_like and friends shouldn't use ndarray.__new__(type(a), ...)

2010-05-26 Thread James Porter
Ping? On 5/13/2010 6:34 PM, Jim Porter wrote: > Ok, let's try sending this message again, since it looks like I can't > send from gmane... > > (See discussion on python-list at > http://permalink.gmane.org/gmane.comp.python.general/661328 for context) > > numpy.zeros_like contains the following co

[Numpy-discussion] Bug in frompyfunc starting at 10000 elements?

2010-05-21 Thread James Bergstra
Hi all, I'm wondering if this is a bug... Something strange happens with my ufunc as soon as I use 1 elements. As the test shows, the ufunc computes the correct result for either the first or last elements, but both at the same time is no good. Turns out I'm only running numpy 1.3.0 with

Re: [Numpy-discussion] Math Library

2010-04-14 Thread James Bergstra
terested in a pure python implementation of fancy indexing... at least the array-type fancy indexing, if not the boolean kind. If someone knows of an implementation please let me know. I'll email the list again if I make any serious progress on it. James -

Re: [Numpy-discussion] [OT] Starving CPUs article featured in IEEE's ComputingNow portal

2010-03-22 Thread James Bergstra
all that, plus automatic differentiation, detection and >> correction of numerical instabilities, etc. >> >> Probably the most amazing thing about it is that with recent versions, >> you basically flip a switch and it will instead use an available CUDA- >> capable Nvidi

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-03 Thread James Bergstra
Thanks all for your help, I think I'm on my way again. The catch in the first place was not being confident that a PyArray_Scalar was the thing I needed. I grep'd the code for uint8, int8 and so on and could not find their definitions. On first reading I overlooked the PyArray_Scalar link in thi

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-02 Thread James Bergstra
On Tue, Mar 2, 2010 at 7:32 PM, David Warde-Farley wrote: > > On 2-Mar-10, at 7:23 PM, James Bergstra wrote: > >> Sorry... again... how do I make such a scalar... *in C* ?  What would >> be the recommended C equivalent of this python code?  Are there C >> type-checking

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-02 Thread James Bergstra
On Tue, Mar 2, 2010 at 7:18 PM, Warren Weckesser wrote: > James Bergstra wrote: >> On Tue, Mar 2, 2010 at 3:09 PM, Christopher Barker >> wrote: >> >>> James Bergstra wrote: >>> >>>> Maybe I'm missing something... but I don't th

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-02 Thread James Bergstra
On Tue, Mar 2, 2010 at 3:09 PM, Christopher Barker wrote: > James Bergstra wrote: >> Maybe I'm missing something... but I don't think I want to create an array. >> >> In [3]: import numpy >> >> In [4]: type(numpy.int8()) >> Out[4]: >> >

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-02 Thread James Bergstra
On Mon, Mar 1, 2010 at 1:44 AM, David Cournapeau wrote: > On Mon, Mar 1, 2010 at 1:35 PM, James Bergstra > wrote: >> Could someone point me to documentation (or even numpy src) that shows >> how to allocate a numpy.int8 in C, or check to see if a PyObject is a >> numpy

[Numpy-discussion] how to work with numpy.int8 in c

2010-02-28 Thread James Bergstra
Could someone point me to documentation (or even numpy src) that shows how to allocate a numpy.int8 in C, or check to see if a PyObject is a numpy.int8? Thanks, James -- http://www-etud.iro.umontreal.ca/~bergstrj ___ NumPy-Discussion mailing list

[Numpy-discussion] problem w 32bit binomial?

2010-02-25 Thread James Bergstra
puter gives an output of array length 3. A 32bit computer gives an error:     TypeError: array cannot be safely cast to required type If I change the int64 cast to an int32 cast then it works on both machines. Thanks, James -- http://www-etud.iro.umontreal.ca/~bergstrj -- http://www-e

[Numpy-discussion] cPickle/unPickle across archs

2010-01-07 Thread James Mazer
load were "ensured" to be invertable...) I've got terrabytes of data that need to be read by both 32bit and 64bit machines (and it's not really feasible to scan all the files into new structures with explict types on a 32bit machine). Anybody have hints for addressing this probl

Re: [Numpy-discussion] convert strides/shape/offset into nd index?

2009-11-30 Thread James Bergstra
at an odd offset... it would be impossible. It would even be impossible if there were a dimension with stride 1 but it had shape of 1 too. I can't think of an algorithm off the top of my head that would do this in a quick and elegant way. James On Sun, Nov 29, 2009 at 10:36 AM, Zachary P

Re: [Numpy-discussion] f2py callback bug?

2009-11-25 Thread James McEnerney
Pearu, Thanks. a follow question. Using fortran   subroutine calc(j) Cf2py intent(callback) pycalc   external pycalc Cf2py integer dimension(1), intent(in,out):: j   integer j(1)   print *, 'in fortran before pycalc ', 'j=', j(1)   call pycalc(j)   print *, 'in fortran af

[Numpy-discussion] f2py callback bug?

2009-11-24 Thread James McEnerney
While using the call-back feature of f2py I stumbled across what appears to be a bug and I'm asking the community to look into this. Background: I'm in the middle of converting some legacy fortran to python. There is one routine that is particulary thorny that calls more easily convertible servic

Re: [Numpy-discussion] Unexpected attribute error

2009-11-18 Thread James Bergstra
On Tue, Nov 17, 2009 at 9:53 PM, Robert Kern wrote: > On Tue, Nov 17, 2009 at 20:48, James Bergstra > wrote: >> Is it by design that  "numpy.sqrt(None)" raises an "AttributeError: sqrt"? > > Yes. numpy.sqrt() is a ufunc. Ufuncs take their arguments and try

[Numpy-discussion] Unexpected attribute error

2009-11-17 Thread James Bergstra
, such as the object on which the lookup failed (here None, as opposed to the numpy module). Now I'm off to delete all the getattr(numpy, 'sqrt') calls I littered through a few files... James -- http://www-etud.iro.umontreal.ca/~bergstrj -- http://www-etud.iro.umontreal.ca/~bergstr

Re: [Numpy-discussion] finding close together points.

2009-11-10 Thread James Bergstra
On Tue, Nov 10, 2009 at 8:17 PM, Christopher Barker wrote: > James Bergstra wrote: >> In some cases a brute-force approach is also good. > > true. > >> If r is a matrix of shape Nx2: >> >> (r*r).sum(axis=1) -2 * numpy.dot(r, r.T) + >> (r*r).sum(ax

Re: [Numpy-discussion] finding close together points.

2009-11-10 Thread James Bergstra
On Tue, Nov 10, 2009 at 7:07 PM, Christopher Barker wrote: > Hi all, > > I have a bunch of points in 2-d space, and I need to find out which > pairs of points are within a certain distance of one-another (regular > old Euclidean norm). > > scipy.spatial.KDTree.query_ball_tree() seems like it's bui

Re: [Numpy-discussion] type 'numpy.int64' unhashable

2009-10-30 Thread James Bergstra
f the dtype in addition). > > Gaël Careful... if your data is not contiguous in memory then you could be adding lots of random noise to your hash key by doing this. This could cause equal ndarrays to hash to different values -- not good. Make sure memory is contiguous before hashing the .data.

[Numpy-discussion] Parallelizable Performance Python Example

2009-09-22 Thread James Snyder
= 0.0 for offset in range(0,2): for i in range(1, nx-1): for j in range(1 + (i + offset) % 2, ny-1, 2): tmp = u[j,i] u[j,i] = ((u[j-1, i] + u[j+1, i])*dx2 + (u[j, i-1] + u[j, i+1])*dy2)*dnr_inv

Re: [Numpy-discussion] Fwd: GPU Numpy

2009-09-09 Thread James Bergstra
s a possibility that future devices (and some laptops already?) will use an integrated memory system that might make 'copying to the GPU' a non-issue... but we're not there yet I think... James -- http://www-etud.iro.umontreal.ca/~bergstrj ___

Re: [Numpy-discussion] Accelerating NumPy computations [Was: GPU Numpy]

2009-08-21 Thread James Bergstra
to these projects are http://www.pylearn.org/theano http://code.google.com/p/theano-cuda-ndarray/ http://code.google.com/p/cuda-ndarray/ James -- http://www-etud.iro.umontreal.ca/~bergstrj ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Removing scipy.stsci was [Re: [SciPy-dev] Deprecate chararray [was Plea for help]]

2009-08-20 Thread James Turner
robably about the most useful thing I could do. Cheers, James. > Hi Stefan, > > Never mind. I just found the Sprint website and read the > description. I'm sorry I hadn't found this sooner. I would have made > plans

Re: [Numpy-discussion] Fwd: GPU Numpy

2009-08-06 Thread James Bergstra
nd cuda so that you declare certain inputs as residing on the GPU instead of the host memory, so you don't have to transfer things to and from host memory as much. James ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Fwd: GPU Numpy

2009-08-06 Thread James Bergstra
array was created has a more powerful code generation mechanism similar to weave. This algorithm is used in theano-cuda-ndarray. Scipy.weave could be very useful for generating code for specific shapes/ndims on demand, if weave could use nvcc. James __

[Numpy-discussion] Fwd: GPU Numpy

2009-08-06 Thread James Bergstra
 We do welcome contributions. I feel like I must be reinventing the wheel on this, so I'd really appreciate it if someone who knows of a similar project would let me know about it. Otherwise we'll keep plugging away at replicating core ndarray interface elements (operat

[Numpy-discussion] Problem building 1.3.0 on x86_64 platform

2009-05-12 Thread James Jackson
stribution directory being created is build/ src.linux-x86_64-2.4 - not i386. Can I force the architecture in the configure step, as it appears this would be the problem (hinted at by LONG_BIG wrong for platform error). Any hints gratefully received! Regards, James. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] syntax error in scalartypes.inc.src

2009-03-10 Thread James Watson
In revision 6609, numpy fails to build on linux x86_64 due to an extra comma on line 779 of numpy/core/src/scalartypes.inc.src. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy and python 2.6 on windows: please test

2009-03-03 Thread James Watson
he python + windows + VS combination. If you have some > insight/recommendations, I would be glad to fix this (e.g. how is this > supposed to work ?) I'm not sure if there's a better way, but I've found it easiest to run python via a debug run from within VS, installing and

Re: [Numpy-discussion] numpy and python 2.6 on windows: please test

2009-03-03 Thread James Watson
> Windows debug extensions have a suffix, d. If you don't install the > debug version of numpy, you can't use it with debug Python. Ah, thank you. Sorry for the newb question: how do you install the debug version (for msvc)? ___ Numpy-discussion mailing

Re: [Numpy-discussion] numpy and python 2.6 on windows: please test

2009-03-03 Thread James Watson
ion of python, 'from numpy.core import multiarray' raises an ImportError, but this does not happen with the release version, where multiarray functions seem to work. Could this be related to the PyImport_Import and PyImport_ImportModule changes made in 2.6 (

Re: [Numpy-discussion] porting NumPy to Python 3

2009-03-02 Thread James Watson
The following are very simple changes that allow the 2to3 program to run on numpy without warnings. Can someone check / commit? numpy/linalg/lapack_lite/make_lite.py: 144c144 < if 'BLAS' in filename --- > if 'BLAS' in filename: numpy/distutils/misc_util.py: 957c957,958 <

Re: [Numpy-discussion] porting NumPy to Python 3

2009-02-10 Thread James Watson
not read status line: Connection reset by peer (http://scipy.org) Am I doing something wrong, or is the server temporarily down? James. >> To get 2to3 to run without warnings, the following files require >> minor changes: >> - numpy/distutils/fcompiler/intel.py

Re: [Numpy-discussion] porting NumPy to Python 3

2009-02-04 Thread James Watson
There are also other (possibly many, still working on this) files that require syntactic changes to run post 2to3. Is there anywhere specific I should upload these changes? Is this list appropriate? Is there a developer I can send these and future patches to? James. > Date: Tue, 3 Feb 2009

[Numpy-discussion] porting NumPy to Python 3

2009-01-29 Thread James Watson
Hi, I am interested in contributing to the port of NumPy to Python 3. Who I should coordinate effort with? I have started at the Python end of the problem (as opposed to http://www.scipy.org/Python3k), e.g. I have several patches to get 2to3 to work on NumPy's Python source code.

Re: [Numpy-discussion] Line of best fit!

2008-12-09 Thread James
bles, do i need to split my data up etc? Thanks Scott Sinclair wrote: >> 2008/12/9 Angus McMorland <[EMAIL PROTECTED]>: >> Hi James, >> >> 2008/12/8 James <[EMAIL PROTECTED]>: >> >>> I have a very simple plot, and the lines join point to po

Re: [Numpy-discussion] Line of best fit!

2008-12-08 Thread James
I have a very simple plot, and the lines join point to point, however i would like to add a line of best fit now onto the chart, i am really new to python etc, and didnt really understand those links! Can anyone help me :) Cheers! James wrote: > Hi, > > I am trying to plot a line of

[Numpy-discussion] Line of best fit!

2008-12-08 Thread James
Hi, I am trying to plot a line of best fit for some data i have, is there a simple way of doing it? Cheers ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy.test() hangs

2008-11-11 Thread James Philbin
> It's working on the buildbots. Did you remove the build directory first? Oops. Great, all working now! James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy.test() hangs

2008-11-11 Thread James Philbin
prototypes -fPIC I'm haven't added any cflags, just running 'python setup.py build'. James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy.test() hangs

2008-11-11 Thread James Philbin
x,1) 292cc: 00 00 00 00 --- Not sure if i'm reading this correctly, but the first line seems to be an unconditional jump to itself, hence an infinite loop? James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.s

Re: [Numpy-discussion] Numpy.test() hangs

2008-11-11 Thread James Philbin
s not a function i'm likely to every use, but i'm curious to know what's wrong. James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy.test() hangs

2008-11-11 Thread James Philbin
mpy as np >>> np.exp(np.ones(1,dtype='f')*3) array([ 20.08553696], dtype=float32) If it helps: $ uname -a Linux lewis 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux James ___ Numpy-discussion mailing list Numpy-d

[Numpy-discussion] Numpy.test() hangs

2008-11-11 Thread James Philbin
=2) ... test_umath.TestLogAddExp.test_logaddexp_values ... The test hangs at the last line and never progresses further. James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Nasty bug with recarray and cPickle

2008-11-07 Thread James Philbin
> I also get the same on my 64-bit linux Fedora rawhide with > ... Thanks, I've submitted this as ticket #952. James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Nasty bug with recarray and cPickle

2008-11-07 Thread James Philbin
Anyone? James On Thu, Nov 6, 2008 at 2:53 PM, James Philbin <[EMAIL PROTECTED]> wrote: > Hi, > > I might be doing something stupid so I thought i'd check here before > filing a bug report. > Firstly: > In [8]: np.__version__ > Out[8]: '1.3.0.dev5883'

[Numpy-discussion] Nasty bug with recarray and cPickle

2008-11-06 Thread James Philbin
Hi, I might be doing something stupid so I thought i'd check here before filing a bug report. Firstly: In [8]: np.__version__ Out[8]: '1.3.0.dev5883' Basically, pickling an element from a recarray seems to break silently: In [1]: import numpy as np In [2]: dtype = [('r','f4'),('g','f4'),('b','f4

Re: [Numpy-discussion] (Late) summary of PEP-225 discussion at Scipy

2008-10-27 Thread James Philbin
One operator which could be used is '%'. We could keep the current behaviour for ARRAY%SCALAR but have ARRAY%ARRAY as being matrix multiplication. It has the same precedence as *,/. James ___ Numpy-discussion mailing list Numpy-discussion@scip

Re: [Numpy-discussion] (Late) summary of PEP-225 discussion at Scipy

2008-10-26 Thread James Philbin
This hack for defining infix operators might be relevant: http://code.activestate.com/recipes/384122/ James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Proposal: scipy.spatial

2008-10-01 Thread James Philbin
hashing which might be useful? James ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Report from SciPy

2008-08-23 Thread James A. Benson
On Sat, 23 Aug 2008, Stéfan van der Walt wrote: 2008/8/23 Travis E. Oliphant <[EMAIL PROTECTED]>: By the way, as promised, the NumPy book is now available for download and the source to the book is checked in to the numpy SVN tree: http://svn.scipy.org/svn/numpy/trunk/numpy/doc/numpybook We

Re: [Numpy-discussion] cubic spline function in numarray or numpy

2008-08-06 Thread James Turner
ine? I doubt it. Cheers, James. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-30 Thread James Turner
> oops. It is ATLAS. I was able to run with a nonoptimized lapack. Just to confirm, it also works for me when I use Netlib BLAS instead of ATLAS. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/num

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
airly high-end workstation. Anyway, I have submitted an ATLAS support request so they're aware of it: https://sourceforge.net/tracker/index.php?func=detail&aid=2032011&group_id=23725&atid=379483 Cheers, James. ___ Numpy-discussio

Re: [Numpy-discussion] FFT usage / consistency

2008-07-29 Thread James Turner
by Bracewell, if that helps. James. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
Thanks everyone. I think I might try using the Netlib BLAS, since it's a server installation... but please let me know if you'd like me to troubleshoot this some more (the sooner the easier). James. ___ Numpy-discussion mailing list Numpy-

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
;re trying to keep things uniform across our sites though. Thanks! James. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
;gdb python core.23696" and got the following. Does that help? Thanks, James. --- GNU gdb Red Hat Linux (5.3.90-0.20030710.40rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute

[Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
py install"? Maybe as an attachment? Let me know if I can provide any more info. Thanks a lot, James. --- [EMAIL PROTECTED] DRSetupScripts]$ python Python 2.5.1 (r251:54863, Jul 28 2008, 19:08:11) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-20)] on linux2 Type "help", "copyright&quo

Re: [Numpy-discussion] Ctypes required? Fails to build.

2008-07-04 Thread James Turner
C++ style comment ("//"). When I remove the comment it works. Should NumPy coding style cater for my eccentric C compiler or is this all above board? Hope I'm not being stupid with the first thing. Thanks, James. --- cc: _configtest.c cc _configtest.o -L/astro/iraf/solsparc/

[Numpy-discussion] Ctypes required? Fails to build.

2008-07-02 Thread James Turner
s my question ... but I'm not 100% clear about it being due to the ctypes problem so I'd be grateful if someone can confirm that. In fact, ctypes is not listed under NumPy "prerequisites" (which, incidentally, is mistyped) in the FAQ and I believ

  1   2   >