Re: [Numpy-discussion] Dropping sourceforge for releases.

2016-10-02 Thread Vincent Davis
> > Chuck > -- Sent from mobile app. Vincent Davis 720-301-3003 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Help loading data into pandas

2015-05-13 Thread Vincent Davis
be the key. they have to be float. Thanks​ Vincent Davis ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Help loading data into pandas

2015-05-13 Thread Vincent Davis
Reader._convert_tokens (pandas/parser.c:10403)() pandas/parser.pyx in pandas.parser.TextReader._convert_with_dtype (pandas/parser.c:11257)() Exception: Integer column has NA values Vincent Davis 720-301-3003 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] ODE how to?

2014-10-27 Thread Vincent Davis
speed. and is of a fixed distance. I have played with some of the simple scipy.integrate.odeint examples. I get that I need to define a system of equations but am not really sure the rules for doing so. A little help would be greatly appreciated. V

Re: [Numpy-discussion] De Bruijn sequence

2014-02-01 Thread Vincent Davis
anslated to other languages, etc., * * so long as proper acknowledgement is given (author and source). * * Programmer: Frank Ruskey (1994), translated to C by Joe Sawada * *****/ Vincent Davis 720-301-3003 On Sat, Feb

[Numpy-discussion] De Bruijn sequence

2014-01-23 Thread Vincent Davis
I happen to be working with De Bruijn sequences. Is there any interest in this being part of numpy/scipy? https://gist.github.com/vincentdavis/8588879 Vincent Davis ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] Numpy interpolate: cut through 2D matrix

2012-03-01 Thread Vincent Schut
hort, you define the coordinates you want your array to be interpolated at, and it will give you the interpolated values, using spline interpolation. Best, Vincent. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] python geospatial package?

2012-02-23 Thread Vincent Schut
uld do this, though I found it had a bit of a steep learning curve. Or you could go the gdal/ogr way, which uses the geos library under the hood (if present) to do geometrical operations like intersec

Re: [Numpy-discussion] find location of maximum values

2012-01-06 Thread Vincent Schut
it is the index in the flattened array. To translate this into a multidimensional index, use numpy.unravel_index(i, original_shape). Cheers, Vincent. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-20 Thread Vincent Schut
I fine-tune the gcc options just for numpy/scipy somehow? Vincent. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] local variable referenced before assignment

2011-05-31 Thread Vincent Schut
On 05/31/2011 11:04 AM, Edoardo Pasca wrote: > Dear all, > > sometimes I encounter the problem that calling many times a function > it happens that some local variables are not defined and the procedure > crashes. > > For example I have a function defined as > > def procedure(tt, Ctissue, WeinmannF

Re: [Numpy-discussion] need a better way to fill a grid

2011-01-24 Thread Vincent Schut
eights=emissions, and lat and lon as your x and y to histogram. Choose the bins to match your grid, and it will effectively sum the emission values for each grid cell. Vincent. > > Thanks, > john > > > > def grid_emissions(lon,lat,emissions,grid.d

Re: [Numpy-discussion] pyc and pyo files in dmg and other python3 questions also a dmg for python3.1 to try

2010-11-14 Thread Vincent Davis
On Sun, Nov 14, 2010 at 7:20 AM, Ralf Gommers wrote: > > > On Sun, Nov 14, 2010 at 9:16 AM, Vincent Davis > wrote: >> >> The questions below regard the osx dmg installer, not sure about how >> this applies to other installers. >> >> I noticed that pyc

[Numpy-discussion] pyc and pyo files in dmg and other python3 questions also a dmg for python3.1 to try

2010-11-13 Thread Vincent Davis
g binaries but I am interested so any advice on how to proceed or what the plans are for building py3 binaries would be appreciated and I will try to contribute. Finally here is a py3 binary to try. http://vincentdavis.info/installers/numpy-1.5.1rc2-py3.1.2-python.org-macosx10.3.dmg -- Thanks Vin

Re: [Numpy-discussion] Python2.7 version check for OSX numpy installer (please Test)

2010-11-09 Thread Vincent Davis
On Tue, Nov 9, 2010 at 5:18 PM, Ralf Gommers wrote: > Hi Vincent, > > On Wed, Nov 10, 2010 at 1:03 AM, Vincent Davis > wrote: > > No need to actualy install, You should get an error right away if you do > not > > have both. > > /Library/Frameworks/Python.fra

[Numpy-discussion] Python2.7 version check for OSX numpy installer (please Test)

2010-11-09 Thread Vincent Davis
-python.org-macosx10.5 I should have a numpy-1.5.1rc2-py2.7-python.org-macosx10.3 ready for testing later. http://dl.dropbox.com/u/1340248/1-nov%209%202010/numpy1.5.1rc2-Py2.7-32-64-test-python-version.dmg -- Thanks Vincent Davis 720-301-3003 ___ NumPy

Re: [Numpy-discussion] updated 1.5.1 release schedule

2010-11-07 Thread Vincent Davis
rc2. I not sure the best way to make this check but I think I can come up with a solution. Also would need a useful error message. Vincent > Cheers, > Ralf > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://m

Re: [Numpy-discussion] large float32 array issue

2010-11-04 Thread Vincent Schut
On 11/03/2010 03:04 PM, Bruce Southey wrote: > On 11/03/2010 06:52 AM, Pauli Virtanen wrote: >> Wed, 03 Nov 2010 12:39:08 +0100, Vincent Schut wrote: >> [clip] >>> Btw, should I file a bug on this? >> One can argue that mean() and sum() should use a numerically stabl

Re: [Numpy-discussion] [SciPy-User] please test/review: Scipy on OS X with Python 2.7

2010-11-03 Thread Vincent Davis
On Wed, Nov 3, 2010 at 6:25 PM, Ralf Gommers wrote: > Hi Vincent, > > On Wed, Nov 3, 2010 at 10:18 PM, Vincent Davis > wrote: > > > > > > Ok I am a little more awake now and not in zombi mode. That is correct > osx > > 10.6 c++4.2, Doing it again and maybe

Re: [Numpy-discussion] large float32 array issue

2010-11-03 Thread Vincent Schut
On 11/03/2010 12:31 PM, Warren Weckesser wrote: > > > On Wed, Nov 3, 2010 at 5:59 AM, Warren Weckesser > mailto:warren.weckes...@enthought.com>> > wrote: > > > > On Wed, Nov 3, 2010 at 3:54 AM, Vincent Schut <mailto:sc...@sarvision.nl>> wrote: &

[Numpy-discussion] large float32 array issue

2010-11-03 Thread Vincent Schut
l now hidden ieee float 'feature'? Or is it a bug somewhere? Btw I'd like to use float32 arrays, as precision is not really an issue in this case, but memory usage is... This is using python 2.7, numpy from git (yesterday's checkout), on arch li

Re: [Numpy-discussion] [SciPy-User] please test/review: Scipy on OS X with Python 2.7

2010-11-02 Thread Vincent Davis
numpy/ticket/1399. > > Thanks, > Ralf > ___ > SciPy-User mailing list > scipy-u...@scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -- Thanks Vincent Davis 720-301-3003 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] tests fails when run $nosetests numpy, but not from python prompt

2010-10-24 Thread Vincent Davis
On Sun, Oct 24, 2010 at 6:29 PM, wrote: > On Sun, Oct 24, 2010 at 8:17 PM, Ralf Gommers > wrote: >> On Sun, Oct 24, 2010 at 2:44 AM, Vincent Davis >> wrote: >>> python2.7 10.5, osx 10.6, numpy 1.5.1rc1 >>> Test pass when run from python prompt (se

[Numpy-discussion] tests fails when run $nosetests numpy, but not from python prompt

2010-10-23 Thread Vincent Davis
python2.7 10.5, osx 10.6, numpy 1.5.1rc1 Test pass when run from python prompt (see bottom) but fail when run from $nosetests numpy. 105osxpython:~ Vincent$ nosetests numpy

Re: [Numpy-discussion] test_creation Errors with np 1.5.1rc1 built on osx 10.5 py27 32bit

2010-10-21 Thread Vincent Davis
Sorry for the noise, I guess I had some cross installed python27 after deleting everything and starting over it work. New results below. Vincent >>> numpy.test() Running unit tests for numpy NumPy version 1.5.1rc1 NumPy is installed in /Library/Frameworks/Python.framework/Version

[Numpy-discussion] test_creation Errors with np 1.5.1rc1 built on osx 10.5 py27 32bit

2010-10-21 Thread Vincent Davis
=== ERROR: test_divisor_conversion_year (test_datetime.TestDateTime) -- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nump

Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Vincent Davis
t;>> print platform.machine() > i386 > >>> print platform.architecture() > ('64bit', '') > >>> import sys; sys.maxint > 9223372036854775807 Currently on OS X (10.6 and earlier), uname returns 'i386' for any Intel platform, 32-bit only o

Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Vincent Davis
> wrote: >> >> On Wed, Oct 20, 2010 at 6:54 AM, Vincent Davis >> wrote: >> > What is the best/good way to know what version of numpy is running (32 >> > or 64 bit). >> >> import platform >> print platform.machine() >> >> > Showing

[Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Vincent Davis
What is the best/good way to know what version of numpy is running (32 or 64 bit). Showing my ignorance maybe but does it always match the python version that is running, which can be ask/tested using sys.maxint? -- Thanks Vincent Davis ___ NumPy

Re: [Numpy-discussion] stride tricks for cellular automata

2010-10-19 Thread Vincent Davis
ut. Not sure strides would be the best way to do it but I like your example. Vincent > > r. > > [1] http://scipy.org/Cookbook/GameOfLifeStrides > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scip

Re: [Numpy-discussion] ANN: NumPy 1.5.1 release candidate 1

2010-10-18 Thread Vincent Davis
n fromfile (under Python 2.x) > - #1633, a failing test for ldexp (under Python 2.5 only) > Please report any other issues on the Numpy-discussion mailing list. Test pass for me. osx 10.6 py27 OK (KNOWNFAIL=4, SKIP=2) Vincent > > Enjoy, > Ralf > __

Re: [Numpy-discussion] Sorry, probably postponing Binary Release [urgent]

2010-10-16 Thread Vincent Davis
to somewhen between 1 and >>> 7 in the morning on the numpy build, but I feel at the end of my >>> power. >> >> Thanks for working so hard, but please don't burn yourself out - we >> need you for more than a week! > > Thank you so much.  :-) > >&g

Re: [Numpy-discussion] OS X installers - naming scheme and 2.7 annoyance

2010-10-16 Thread Vincent Davis
osx10.3 installer, that would stay the same. The only difference > for OSX 10.5 users is that they cannot use 64-bit code without > building their own binaries." Just to be clear. If we are building a 10.5 numpy py27 release we should be building it on Python "32-bit Mac Install

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-15 Thread Vincent Davis
ed I'm happy to build numpy >> as well. > > I'll let Ralf and Friedrich and Vincent respond, but that sounds like a > great option. I agree Russell if you would like to help with this, great. For Friedrich and myself we are interested in 10.5 and 10.6 first Christopher, you

Re: [Numpy-discussion] installing different tag or branches from git source

2010-10-14 Thread Vincent Davis
On Thu, Oct 14, 2010 at 6:41 AM, Ralf Gommers wrote: > > > On Thu, Oct 14, 2010 at 9:48 AM, Vincent Davis > wrote: >> >> Ok so this is more of a git question but and I think it might be >> simple I just don't get it. >> Lets say I get a copy of num

[Numpy-discussion] installing different tag or branches from git source

2010-10-13 Thread Vincent Davis
n be found by starting at http://www.scipy.org/Developer_Zone How does one add a link to that page? -- Thanks Vincent Davis 720-301-3003 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] www.numpy.org url issues

2010-10-13 Thread Vincent Davis
ould point to numpy.scipy.org rather than numpy.org. If the control of numpy.org is in question or is not working correctly. Vincent > > Ben Root > > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http:/

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-13 Thread Vincent Davis
now: > > 1) keep trying to fix that error -- a post to the pythonmac list might > help there. > > 2) Punt, and just build on an older system. It sounds like Vincent may > be able to help out with that. > > (I've got a Intel 10.6 system and a PPC 10.5 system now, but I&#

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-12 Thread Vincent Davis
On Tue, Oct 12, 2010 at 4:38 PM, Christopher Barker wrote: > On 10/12/10 2:00 PM, Vincent Davis wrote: >> I could do 10.4 also. For me doing this is maybe best described as a >> curiosity. But my understanding was that some where having trouble >> install on 10.5 with binarie

Re: [Numpy-discussion] Development workflow

2010-10-12 Thread Vincent Davis
On Tue, Oct 12, 2010 at 2:46 PM, Pauli Virtanen wrote: > Tue, 12 Oct 2010 13:55:27 -0600, Vincent Davis wrote: >>> It's meant for easy inclusion in other projects (if they agree with the >>> worfklow it presents), here it is for example rendered with the urls >

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-12 Thread Vincent Davis
On Tue, Oct 12, 2010 at 2:53 PM, Christopher Barker wrote: > Vincent Davis wrote: >> Ok, Friedrich and I are working on setting up a machine for building >> on 10.5 and hope (I do)  to have that going for 1.5.1rc1 >> I hope to do a 10.6 for 1.5rc1 also. > > why have a s

Re: [Numpy-discussion] Development workflow

2010-10-12 Thread Vincent Davis
On Tue, Oct 12, 2010 at 12:55 PM, Fernando Perez wrote: > On Tue, Oct 12, 2010 at 6:51 AM, Vincent Davis > wrote: >> Lots of good reading :) Just thought I'd put a plug in for the >> contributor that may make only a few contributions and needs a simple >> workflow t

[Numpy-discussion] www.numpy.org url issues

2010-10-12 Thread Vincent Davis
be obvious what the right URL would be. Also I have noticed that numpy.org mixes new.scipy.org and scipy.org (actual url not what is displayed) different than if you start from scip.org. If you start at scipy.org everything works right. Ok so maybe this only bugs me :) -- Thanks Vincent Davis 72

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-12 Thread Vincent Davis
On Tue, Oct 12, 2010 at 9:15 AM, Ralf Gommers wrote: > > > On Mon, Oct 11, 2010 at 11:14 PM, Vincent Davis > wrote: >> >> On Mon, Oct 11, 2010 at 7:34 AM, Ralf Gommers >> wrote: >> > Hi Friedrich, >> > >> > On Mon, Oct 11, 2010 at 2:46

Re: [Numpy-discussion] Development workflow

2010-10-12 Thread Vincent Davis
think part of the point of moving to git was to make these types of contributions easier. Ideally there would be instructions here http://www.numpy.org/ Vincent On Tue, Oct 12, 2010 at 4:22 AM, Pauli Virtanen wrote: > Tue, 12 Oct 2010 11:48:07 +0200, Pierre GM wrote: > [clip] >> Till

Re: [Numpy-discussion] equality of empty arrays

2010-10-11 Thread Vincent Davis
t; the same shape). >>> m.size==n.size True >>> m.shape==n.shape True Not sure about "be broadcasted to the same shape" I would kind of expect == to return true, false or some error. Thanks Vincent > The correct way to check if an array is empty is to inspect its .shape &

[Numpy-discussion] equality of empty arrays

2010-10-11 Thread Vincent Davis
I assume there is some reasoning behind this >>> m = np.array([]) >>> n = np.array([]) >>> m==n array([], dtype=bool) I was expecting somthing like. >>> m = [] >>> n = [] >>> m==n True What is the right way to test if an

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-11 Thread Vincent Davis
On Mon, Oct 11, 2010 at 7:34 AM, Ralf Gommers wrote: > Hi Friedrich, > > On Mon, Oct 11, 2010 at 2:46 AM, Friedrich Romstedt > wrote: >> >> 2010/10/9 Vincent Davis : >> > Did you get any responses on this? I can install 10.5 and help out >> > with some

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-10 Thread Vincent Davis
On Sun, Oct 10, 2010 at 12:46 PM, Friedrich Romstedt wrote: > 2010/10/9 Vincent Davis : >> Did you get any responses on this? I can install 10.5 and help out >> with some testing. I have a macbookpro that does not turn of (Hardware >> issue) but it is good for testing. I coul

Re: [Numpy-discussion] help from OS X 10.5 users wanted

2010-10-09 Thread Vincent Davis
install and testing testing of numpy and scipy? Vincent On Tue, Sep 21, 2010 at 8:57 AM, Ralf Gommers wrote: > Hi, > > There have been many reports from OS X 10.5(.8) users that the provided > binaries on Sourceforge for numpy versions >= 1.4.0 do not work, see > http://projec

Re: [Numpy-discussion] {OT} Mailing trends

2010-08-06 Thread Vincent Davis
On Fri, Aug 6, 2010 at 10:16 AM, wrote: > On Fri, Aug 6, 2010 at 11:13 AM, Vincent Davis > wrote: > > > > On Thu, Aug 5, 2010 at 2:55 PM, wrote: > >> > >> On Thu, Aug 5, 2010 at 3:43 PM, Gökhan Sever > wrote: > >> > Hello, > >> >

Re: [Numpy-discussion] {OT} Mailing trends

2010-08-06 Thread Vincent Davis
esults for optimize** Of course there are many reasons an it just might be popular in example code and not really the question in the post. Vincent Josef > > > > -- > > Gökhan > > > > ___ > > NumPy-Discussion mailing list &

Re: [Numpy-discussion] summarizing blocks of an array using a moving window

2010-07-22 Thread Vincent Schut
nd sums/means. Other stats might be hard, though. Good luck! Vincent Schut. > > The long version: I am trying to resample an image loaded with GDAL into an > NxN array. Note that this is for statistical purposes, so image quality > doesn't matter. For the curious, the image is derived

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Vincent Davis
On Wed, Jul 21, 2010 at 1:00 PM, Keith Goodman wrote: > On Wed, Jul 21, 2010 at 11:41 AM, Vincent Davis > wrote: >> On Wed, Jul 21, 2010 at 11:08 AM, Keith Goodman wrote: >>> On Wed, Jul 21, 2010 at 9:56 AM, John Salvatier >>> wrote: >>>> I don

Re: [Numpy-discussion] Datarray BoF, part2

2010-07-21 Thread Vincent Davis
ckmap() to the array. Then if an operation was performed on the array to would result in the labels no longer being meaningful then the flag would change. In this way tickmap(i) checks for the flags and each axis could have a flag. (I am sure there is lots I am missing) Vincent > _

[Numpy-discussion] inverse of compress

2010-07-21 Thread Vincent Schut
elements that are True with values from b, b being a flat array the length of sum(mask). Currently I of course just first create a, then do a[mask] = b. Which works, but is ugly :-) So if anyone has a oneliner which I missed, please step forward... regards, Vincent Schut

Re: [Numpy-discussion] Crosstabulation

2010-07-20 Thread Vincent Schut
On 07/19/2010 10:14 PM, Friedrich Romstedt wrote: > 2010/7/19 sandric ionut: >> For land-use a class would be for example forest, other would be orchard >> etc. For Slope gradient I would have values which<3 and between 3 and 7 >> etc. So, I will have 2 raster data with, let's say, 3 classes each

Re: [Numpy-discussion] numpy Trac emails

2010-07-19 Thread Vincent Davis
do think that the signup for this is separate for each, I think I get the emails because I have signed up for the lists at the bottom of this page. http://www.scipy.org/Mailing_Lists Vincent > > Works for me. > > Did you check if your email address is correct there? (-&g

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Vincent Schut
On 07/19/2010 03:34 PM, Richard D. Moores wrote: > On Mon, Jul 19, 2010 at 06:15, Vincent Schut wrote: >> >> >> On 07/19/2010 02:56 PM, Richard D. Moores wrote: >>> On Mon, Jul 19, 2010 at 05:28, Vincent Schutwrote: >>>> >>>> Well,

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Vincent Schut
On 07/19/2010 02:56 PM, Richard D. Moores wrote: > On Mon, Jul 19, 2010 at 05:28, Vincent Schut wrote: >> >> Well, you might want to read up on some beginners guide for python? It's >> up to you, of course, but usually before starting with numpy (which >> extend

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Vincent Schut
ot work because 'python.exe' is in a different folder (c:\Python31). You could go into that folder, but then you would not be able to find numpy's setup.py script. Best way to solve that: make sure you're in the numpy folder, and type something like: '

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread Vincent Schut
and use array is x, your slope gradient array = y, then you define the bins as your class numbers (for x) and your slope gradient ranges (for y), and you will get a pixel count for each bin combination. see: http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html Regard

Re: [Numpy-discussion] PyDocWeb "the doc editor" and github transition

2010-07-17 Thread Vincent Davis
On Sat, Jul 17, 2010 at 1:47 PM, Pauli Virtanen wrote: > Sat, 17 Jul 2010 13:11:46 -0600, Vincent Davis wrote: >> I have not seen anything about the move to github and how this effects >> pydocweb or did I just miss it. I am willing to adapt pydocweb to work >> with github

[Numpy-discussion] PyDocWeb "the doc editor" and github transition

2010-07-17 Thread Vincent Davis
and I will work on it) Vincent ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ? FAIL: test_print.test_complex_types(, )

2010-07-03 Thread Vincent Davis
On Sat, Jul 3, 2010 at 6:36 AM, Ralf Gommers wrote: > > > On Wed, Jun 30, 2010 at 1:08 PM, Vincent Davis > wrote: >> >> I didn't find these documented anywhere, I have numpy(couple day old >> snapshot) install on python 2.7 OSX 64bit. > > I see those

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Vincent Davis
uot; it and it is ugly) solution = None for r in range(len(alist): for comb in itertools.combinations(alist, r): if sum(comb)==TheValue: solution=comb break break > > > > 2010/7/1 Vincent Davis : >> On Thu, Jul 1, 2010 at 3:17 AM, Renato Fabbri &g

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Vincent Davis
asolution.append(comb) Now just find the comb values in the array. Like I said kinda brute force. Also depends if you want all solutions or a solution. Vincent > > best, > rf > > > -- > GNU/Linux User #479299 > skype: fabbri.renato > _

[Numpy-discussion] ? FAIL: test_print.test_complex_types(, )

2010-06-29 Thread Vincent Davis
I didn't find these documented anywhere, I have numpy(couple day old snapshot) install on python 2.7 OSX 64bit. Thanks Vincent == FAIL: test_print.test_complex_types(,) Check formatting of complex

Re: [Numpy-discussion] numscons and Python 2.7 problems

2010-06-28 Thread Vincent Davis
gt; after release candidate 2. See discussion at > <http://mail.python.org/pipermail/python-dev/2010-June/thread.html#100885> I just successfully built from source numpy on todays 2.7 snapshot with the following command. LDFLAGS="-arch x86_64" FFLAGS="-arch x86_64&quo

Re: [Numpy-discussion] numpy.random.poisson docs missing "Returns"

2010-06-26 Thread Vincent Davis
ot be as close to Ready For Review as we thought... > > Is there a chance that some changes got lost? > > I thought I had edited random.pareto to note that it is actually Lomax > or Pareto II. But I'm not completely sure I actually did it, and not > just intended to do it.

[Numpy-discussion] Try this, new tests for numpy.random

2010-06-26 Thread Vincent Davis
of 3.1) I think it would be a good idea if several others ran the test to see if there are other problems or if it is actually stable across versions. Any other feedback Vincent SUMMARY OF UNIT TEST RESULTS FAILED TESTS * TestRandomDist.test_lognormal

Re: [Numpy-discussion] numpy.random.poisson docs missing "Returns"

2010-06-26 Thread Vincent Davis
ttom line: if it doesn't start w/ scipy, leave it alone (for now). I had started a simple set of tests for the rand functions to catch problems like the one resulting from the way the enthought distr. was calculating randn(), I was just finishing that and making note of what I say in the do

[Numpy-discussion] numpy.random.poisson docs missing "Returns"

2010-06-26 Thread Vincent Davis
numpy.random.poisson docs missing "Returns" http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.poisson.html#numpy.random.poisson ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discus

[Numpy-discussion] numpy.random.pareto, missing "returns" in the docs

2010-06-26 Thread Vincent Davis
numpy.random.pareto, missing "returns" in the docs http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.pareto.html#numpy.random.pareto Vincent ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.o

Re: [Numpy-discussion] Documentation error in numpy.random.logseries

2010-06-26 Thread Vincent Davis
On Sat, Jun 26, 2010 at 3:18 PM, wrote: > On Sat, Jun 26, 2010 at 5:12 PM, Vincent Davis > wrote: >> On Sat, Jun 26, 2010 at 3:04 PM,   wrote: >>> On Sat, Jun 26, 2010 at 4:58 PM, David Goldsmith >>> wrote: >>>> On Sat, Jun 26,

[Numpy-discussion] printing of array and leading white space ?

2010-06-26 Thread Vincent Davis
r. The 3 spaces are not there is the second digit is shorter. The thing is I can't think of an example where the 3 spaces are needed. Is there an example? Vincent ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Documentation error in numpy.random.logseries

2010-06-26 Thread Vincent Davis
On Sat, Jun 26, 2010 at 3:04 PM, wrote: > On Sat, Jun 26, 2010 at 4:58 PM, David Goldsmith > wrote: >> On Sat, Jun 26, 2010 at 1:41 PM, Vincent Davis >> wrote: >>> >>> numpy.random.logseries(p, size=None) >>> >>> but the parameters section,

Re: [Numpy-discussion] Documentation error in numpy.random.logseries

2010-06-26 Thread Vincent Davis
On Sat, Jun 26, 2010 at 2:41 PM, Vincent Davis wrote: > numpy.random.logseries(p, size=None) > > but the parameters section, > Parameters: > loc : float > scale : float > 0. > size : {tuple, int} > Output shape. If the given shape is, e.g., (m, n, k), then m

[Numpy-discussion] Documentation error in numpy.random.logseries

2010-06-26 Thread Vincent Davis
et unless I am mission something, Which should it be loc or p What about scale. There is no numpy-dev list right? Should this list be used or the scipy-dev list> Vincent ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] Technicalities of the SVN -> GIT transition

2010-06-14 Thread Vincent Davis
Is this http://github.com/cournape/numpy going to become the git repo? I guess I am wondering what the progress is of the transition? Vincent On Sun, Jun 6, 2010 at 7:43 PM, David wrote: > On 06/05/2010 11:43 PM, Pauli Virtanen wrote: >> Fri, 04 Jun 2010 15:28:52 -0700, Matthew Br

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-13 Thread Vincent Davis
On Sun, Jun 13, 2010 at 5:06 PM, David Cournapeau wrote: > > > On Mon, Jun 14, 2010 at 5:17 AM, Vincent Davis > wrote: >> >> As an update. I was able to get py 3.2.1 current source to build/install. >> After that I was able to build and install the current numpy. Ev

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-13 Thread Vincent Davis
se/__init__.py", line 1, in from nose.core import collector, main, run, run_exit, runmodule File "nose/core.py", line 142 print "%s version %s" % (os.path.basename(sys.argv[0]), __version__) Vincent On Tue, Jun 8, 2010 at 7:02 PM, Vincent Davis wrote: > Have an

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-08 Thread Vincent Davis
Have any of you built py 3.1.2 from source on a mac? Vincent On Tue, Jun 8, 2010 at 6:56 PM, David wrote: > On 06/09/2010 08:04 AM, Vincent Davis wrote: >> I do have limits.h in 10.4 sdk >> >> So what next. Ay Ideas? >> I had tried to build py 3.1.2 from source b

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-08 Thread Vincent Davis
I do have limits.h in 10.4 sdk So what next. Ay Ideas? I had tried to build py 3.1.2 from source but that did not work either. Thanks Vincent On Tue, Jun 8, 2010 at 3:15 PM, Zachary Pincus wrote: > Hi Vincent, > > I'm not really sure -- now the build is using the 10.4 SDK b

[Numpy-discussion] Mail list idea

2010-06-08 Thread Vincent Davis
that is similar to stackoverflow in that a user can search and post within the same page and as they type a question suggested relevant posts are shown. I probably should be posting this elsewhere, like on some mailman list. Do you think this is feasible (cost, benefit) or desirable? Vincent

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-08 Thread Vincent Davis
x27;, 'vmd') ('USER', 'vmd') ('PATH', '/Library/Frameworks/EPD64.framework/Versions/Current/bin:/Library/Frameworks/EPD64.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/opt/local/bin')

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-07 Thread Vincent Davis
On Mon, Jun 7, 2010 at 7:26 PM, Ralf Gommers wrote: > > > On Tue, Jun 8, 2010 at 4:46 AM, Vincent Davis > wrote: >> >> On Mon, Jun 7, 2010 at 2:11 PM, Skipper Seabold >> wrote: >> > On Mon, Jun 7, 2010 at 4:02 PM, Vincent Davis >> > wrote: >

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-07 Thread Vincent Davis
Well I am way from my computer so I am not sure what's up. You might give it a bit? Vincent On Monday, June 7, 2010, Zachary Pincus wrote: > > On Jun 7, 2010, at 5:19 PM, Vincent Davis wrote: > >> Here is a link to the full output after typing python setup.py build. >&g

Re: [Numpy-discussion] Is there really a moderator that reviews posts?

2010-06-07 Thread Vincent Davis
On Mon, Jun 7, 2010 at 3:04 PM, PostMaster wrote: > On Mon, Jun 7, 2010 at 14:32,   wrote: >> On Mon, Jun 7, 2010 at 3:14 PM, Vincent Davis >> wrote: >>> I just tried a post and got this. Should I repost without the long >>> section of the terminal output I

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-07 Thread Vincent Davis
On Mon, Jun 7, 2010 at 2:54 PM, Zachary Pincus wrote: > Hi Vincent, > > (1) Fortran compiler isn't necessary for numpy, but is for scipy, > which isn't ported to python 3 yet. > (2) Could you put up on pastebin or somewhere online the full error > you got? > > Th

Re: [Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-07 Thread Vincent Davis
On Mon, Jun 7, 2010 at 2:11 PM, Skipper Seabold wrote: > On Mon, Jun 7, 2010 at 4:02 PM, Vincent Davis > wrote: >> Going down the prerequisite list I have. >> >> Python 3.1.2 (r312:79360M, Mar 24 2010, 01:33:18) >> [GCC 4.0.1 (Apple Inc. build 5493)] on dar

[Numpy-discussion] Installing numpy on py 3.1.2 , osx

2010-06-07 Thread Vincent Davis
r For compiler details, run 'config_fc --verbose' setup command. Which gives me the impression I do not have a fortran compiler. Not sure which one I should get, any recommendations? If I type python build I get (See below) Thanks Vincent It seems that it is to much to post soI have cl

[Numpy-discussion] Is there really a moderator that reviews posts?

2010-06-07 Thread Vincent Davis
I just tried a post and got this. Should I repost without the long section of the terminal output I pasted in ? Your mail to 'NumPy-Discussion' with the subject Installing numpy from source on py 3.1.2, osx Is being held until the list moderator can review it for approval. The reason it is b

Re: [Numpy-discussion] 2D binning

2010-06-02 Thread Vincent Schut
>>> >>> averaged = dict((ltln, numpy.mean(da)) for ltln, da in >>> grouped.items()) >>> >>> Is that fast enough? > > If the lat lon can be converted to a 1d label as Wes suggested, then > in a similar timing exercise ndimage was the fastest. >

Re: [Numpy-discussion] How to distinguish between number and string dypes

2010-05-27 Thread Vincent Davis
On Thu, May 27, 2010 at 10:25 AM, Bruce Southey wrote: > On 05/27/2010 10:40 AM, Vincent Davis wrote: > Can you give an example of what you are trying to do? > arr = np.array([(1,'a'),(2,'b')], dtype =[(num,int),(str, |s2)] No supposed I want to know if I can sum

Re: [Numpy-discussion] How to distinguish between number and string dypes

2010-05-27 Thread Vincent Davis
ss my use case is that I want to be sure I can perform math on the values. So maybe I should just do someting like "numpy.lib._iotools._is_string_like" but "_is_number_like", Maybe there is such and I missed it. If not there should be. Vincent _

Re: [Numpy-discussion] How to distinguish between number and string dypes

2010-05-27 Thread Vincent Davis
On Thu, May 27, 2010 at 1:27 AM, Francesc Alted wrote: > A Thursday 27 May 2010 05:52:22 Vincent Davis escrigué: > > How do I determine if an array's (or column in a structured array) dtype > is > > a number or a string. I see how to determine the actual dtype but all I

[Numpy-discussion] How to distinguish between number and string dypes

2010-05-26 Thread Vincent Davis
How do I determine if an array's (or column in a structured array) dtype is a number or a string. I see how to determine the actual dtype but all I want to know is if it is a string or a number. *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net>

Re: [Numpy-discussion] loadtxt raises an exception on empty file

2010-05-24 Thread Vincent Davis
End-of-file reached before encountering data.') So it looks like it is not a bug although I am not sure why returning an empty array would not be valid. But then what are you going to do with the empty array? Vincent > > numpy.fromfile() handles empty text files: > > >>&g

Re: [Numpy-discussion] Problems creating numpy.array with a dtype

2010-05-15 Thread Vincent Davis
can anarray = np.array([(1,),(2,),(3,)], dtype = [('num', int)]) Vincent On Sat, May 15, 2010 at 7:37 AM, wrote: > On Sat, May 15, 2010 at 9:27 AM, Jimmie Houchin > wrote: > > On 5/15/2010 6:30 AM, josef.p...@gmail.com wrote: > >> On Sat, May 15, 2010 at 1

  1   2   >