I have an array that represents the number of times a value has been
given. I'm trying to find a direct numpy way to add into these sums
without requiring a Python loop.
For example, say there are 10 possible values. I start with an array of
zeros.
counts = numpy.zeros(10, numpy.int)
Now I
On Wed, Apr 14, 2010 at 1:10 AM, Peter Shinners p...@shinners.org wrote:
I have an array that represents the number of times a value has been
given. I'm trying to find a direct numpy way to add into these sums
without requiring a Python loop.
For example, say there are 10 possible values. I
Gökhan Sever wrote:
On Wed, Apr 14, 2010 at 1:10 AM, Peter Shinners p...@shinners.org
mailto:p...@shinners.org wrote:
I have an array that represents the number of times a value has been
given. I'm trying to find a direct numpy way to add into these sums
without requiring a
On Wed, Apr 14, 2010 at 1:34 AM, Warren Weckesser
warren.weckes...@enthought.com wrote:
Gökhan Sever wrote:
On Wed, Apr 14, 2010 at 1:10 AM, Peter Shinners p...@shinners.org
mailto:p...@shinners.org wrote:
I have an array that represents the number of times a value has been
On 04/13/2010 11:44 PM, Gökhan Sever wrote:
On Wed, Apr 14, 2010 at 1:34 AM, Warren Weckesser
warren.weckes...@enthought.com
mailto:warren.weckes...@enthought.com wrote:
Gökhan Sever wrote:
On Wed, Apr 14, 2010 at 1:10 AM, Peter Shinners
p...@shinners.org
Hallo everybody
maybe somebody can help with the following:
i'm using numpy and pil to find objects in a grayscale image. I make an
array of the image and then i look for pixels with the value above the 230.
Then i convert the array to image and i see my objects.
What i want is to make the
Howdy,
in ipython we use numpydoc, and as I was just trying to build the docs
from a clean checkout of ipython's trunk, I kept getting errors that I
was able to fix with this patch:
amirbar[sphinxext] svn diff
Index: numpydoc.py
===
I assume that you forgot to specify the range between 300 and 400. But anyway
this piece of code may give you a direction:
--
import numpy as np
ythreshold = np.repeat(np.arange(4,-1,-1), 100) * 20 +190
bin_image = image ythreshold[:,None]
Hi all,
On doc-sig there is a discussion going on about adopting a standard
docstring format for the stdlib. The suggested format is epydoc. If you care
about readability in a terminal then it may be good to join this discussion.
http://mail.python.org/pipermail/doc-sig/2010-April/003819.html
Wed, 14 Apr 2010 01:17:37 -0700, Fernando Perez wrote:
[clip]
Exception occurred:
File /home/fperez/ipython/repo/trunk-lp/docs/sphinxext/numpydoc.py,
line 71, in mangle_signature
'initializes x; see ' in pydoc.getdoc(obj.__init__)):
AttributeError: class Bunch has no attribute
A Sunday 11 April 2010 11:09:53 Ralf Gommers escrigué:
Hi,
I am pleased to announce the second release candidate of both Scipy 0.7.2
and NumPy 1.4.1, please test them.
The issues reported with rc1 should be fixed, and for NumPy there are now
Python 2.5 binaries as well. For SciPy there
On 4/13/2010 11:16 PM, jah wrote:
binomial coefficent and factorial function
http://code.google.com/p/econpy/source/browse/trunk/pytrix/pytrix.py
fwiw,
Alan Isaac
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
On Wed, Apr 14, 2010 at 7:08 AM, Francesc Alted fal...@pytables.org wrote:
A Sunday 11 April 2010 11:09:53 Ralf Gommers escrigué:
Hi,
I am pleased to announce the second release candidate of both Scipy 0.7.2
and NumPy 1.4.1, please test them.
The issues reported with rc1 should be
A Wednesday 14 April 2010 15:36:00 Charles R Harris escrigué:
/home/faltet/PyTables/pytables/trunk/tables/table.py:38: RuntimeWarning:
numpy.dtype size changed, may indicate binary incompatibility
I'm using current stable Cython 12.1. Is the warning above intended or
I'm doing something
Is there a way to combine two 1D arrays with the same size into a 2D
array? It seems like the internal pointers and strides could be
combined. My primary goal is to not make any copies of the data. It
might be doable with a bit of ctypes if there is not a native numpy call.
import numpy as
On Wed, Apr 14, 2010 at 10:25, Peter Shinners p...@shinners.org wrote:
Is there a way to combine two 1D arrays with the same size into a 2D
array? It seems like the internal pointers and strides could be
combined. My primary goal is to not make any copies of the data.
There is absolutely no
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and (1,2).
Best,
-Niko
--
»Time flies like an arrow, fruit flies like a
Hi,
I am pleased to announce the second release candidate of both Scipy 0.7.2
and NumPy 1.4.1. Please test, and report any problems on the NumPy or SciPy
list. I also want to specifically ask you to report success/failure with
other libraries (Matplotlib, Pygame, your favorite lib here) based on
On Wed, Apr 14, 2010 at 11:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and
On Wed, Apr 14, 2010 at 10:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [
On Wed, Apr 14, 2010 at 3:21 AM, Pauli Virtanen pav...@iki.fi wrote:
But I didn't write numpydoc and I'm tired, so I don't want to commit
this without a second pair of eyes...
Yeah, it's a bug, I think.
Thanks, fixed in r8333.
Cheers,
f
___
On Wed, Apr 14, 2010 at 10:25, Peter Shinners p...@shinners.org
wrote:
Is there a way to combine two 1D arrays with the same size into a 2D
array? It seems like the internal pointers and strides could be
combined. My primary goal is to not make any copies of the data.
There is absolutely
On 14 April 2010 11:34, Robert Kern robert.k...@gmail.com wrote:
On Wed, Apr 14, 2010 at 10:25, Peter Shinners p...@shinners.org wrote:
Is there a way to combine two 1D arrays with the same size into a 2D
array? It seems like the internal pointers and strides could be
combined. My primary goal
Just downloaded this.
On my mac 10.6, using python 2.6.5 i get:
Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM, Nikolaus Rath nikol...@rath.org wrote:
Hello,
How do I best find out
On Wed, Apr 14, 2010 at 1:56 PM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16
Nikolaus Rath Nikolaus at rath.org writes:
Hello,
How do I best find out the indices of the largest x elements in an
array?
Example:
a = [ [1,8,2], [2,1,3] ]
magic_function(a, 2) == [ (0,1), (1,2) ]
Since the largest 2 elements are at positions (0,1) and (1,2).
Best,
jah wrote:
Is there any chance that a binomial coefficent and factorial function
can make their way into NumPy?
probably not -- numpy is over-populated already
I know these exist in Scipy, but I don't
want to have to install SciPy just to have something so basic.
The problem is that
I would really like to see this become a core part of numpy...
For groupby-like summing over arrays, I use a modified version of
numpy.bincount() which has optional arguments that greatly enhance its
flexibility:
bincount(bin, weights=, max_bins=. out=)
where:
* bins- numpy array
On 14 April 2010 16:56, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 8:16 AM,
On 14 April 2010 17:37, Christopher Barker chris.bar...@noaa.gov wrote:
jah wrote:
Is there any chance that a binomial coefficent and factorial function
can make their way into NumPy?
probably not -- numpy is over-populated already
I know these exist in Scipy, but I don't
want to have to
On Wed, Apr 14, 2010 at 3:12 PM, Anne Archibald
peridot.face...@gmail.com wrote:
On 14 April 2010 16:56, Keith Goodman kwgood...@gmail.com wrote:
On Wed, Apr 14, 2010 at 12:39 PM, Nikolaus Rath nikol...@rath.org wrote:
Keith Goodman kwgood...@gmail.com writes:
On Wed, Apr 14, 2010 at 8:49 AM,
Anne Archibald wrote:
The problem is that everyone has a different basic. What we really
need is an easier way for folks to use sub-packages of scipy. I've found
myself hand-extracting just what I need, too.
Maybe I've been spoiled by using Linux, but my answer to this sort of
thing is
2010/4/15 Charles سمير Doutriaux doutria...@llnl.gov
Just downloaded this.
On my mac 10.6, using python 2.6.5 i get:
Which download, what build command and what python/gcc versions?
Looks like you're trying to build a 64-bit binary without passing in -arch
x86_64 flags?
Ralf
Running
On Tue, Apr 6, 2010 at 10:08 AM, David Cournapeau wrote:
could be put out of multiarray proper. Also, exposing an API for
things like fancy indexing would be very useful, but I don't know if
it even makes sense - I think a pure python implementation of fancy
indexing as a reference would be
38 matches
Mail list logo