On Fri, Aug 19, 2011 at 9:09 AM, Jeremy Conlin wrote:
> On Fri, Aug 19, 2011 at 8:01 AM, Brent Pedersen wrote:
>> On Fri, Aug 19, 2011 at 7:29 AM, Jeremy Conlin wrote:
>>> On Fri, Aug 19, 2011 at 7:19 AM, Pauli Virtanen wrote:
>>>> Fri, 19 Aug 2011 07:00:31 -0600
On Fri, Aug 19, 2011 at 7:29 AM, Jeremy Conlin wrote:
> On Fri, Aug 19, 2011 at 7:19 AM, Pauli Virtanen wrote:
>> Fri, 19 Aug 2011 07:00:31 -0600, Jeremy Conlin wrote:
>>> I would like to use numpy's memmap on some data files I have. The first
>>> 12 or so lines of the files contain text (header
On Wed, Apr 27, 2011 at 4:07 PM, Christoph Gohlke wrote:
> I don't think this was working correctly in numpy 1.4 either. The
> underlying problem seems to be that instance attributes of ndarray
> subtypes get lost during pickling:
>
> import pickle
> import numpy as np
> class aarray(np.ndarray):
On Mon, Mar 21, 2011 at 11:57 AM, Keith Goodman wrote:
> On Mon, Mar 21, 2011 at 10:34 AM, Brent Pedersen wrote:
>> On Mon, Mar 21, 2011 at 11:19 AM, Keith Goodman wrote:
>>> On Mon, Mar 21, 2011 at 10:10 AM, Brent Pedersen wrote:
>>>> hi, is there a way to take
On Mon, Mar 21, 2011 at 11:19 AM, Keith Goodman wrote:
> On Mon, Mar 21, 2011 at 10:10 AM, Brent Pedersen wrote:
>> hi, is there a way to take the product along a 1-d array in a moving
>> window? -- similar to convolve, with product in place of sum?
>> currently, i'm
hi, is there a way to take the product along a 1-d array in a moving
window? -- similar to convolve, with product in place of sum?
currently, i'm column_stacking the array with offsets of itself into
window_size columns and then taking the product at axis 1.
like::
w = np.column_stack(a[i:-windo
On Tue, Jun 1, 2010 at 1:51 PM, Wes McKinney wrote:
> On Tue, Jun 1, 2010 at 4:49 PM, Zachary Pincus
> wrote:
>>> Hi
>>> Can anyone think of a clever (non-lopping) solution to the following?
>>>
>>> A have a list of latitudes, a list of longitudes, and list of data
>>> values. All lists are the
On Mon, May 24, 2010 at 3:37 PM, Gael Varoquaux
wrote:
> On Mon, May 24, 2010 at 03:33:09PM -0700, Brent Pedersen wrote:
>> On Mon, May 24, 2010 at 3:25 PM, Gael Varoquaux
>> wrote:
>> > Memmapped arrays don't pickle right. I know that to get them to
>> >
On Mon, May 24, 2010 at 3:25 PM, Gael Varoquaux
wrote:
> Memmapped arrays don't pickle right. I know that to get them to
> really pickle and restore identically, we would need some effort.
> However, in the current status, pickling and restoring a memmapped array
> leads to tracebacks that seem li
On Sun, May 16, 2010 at 12:14 PM, Davide Lasagna
wrote:
> Hi all,
> What is the fastest and lowest memory consumption way to compute this?
> y = np.arange(2**24)
> bases = y[1:] + y[:-1]
> Actually it is already quite fast, but i'm not sure whether it is occupying
> some temporary memory
> is the
On Tue, Apr 13, 2010 at 8:59 PM, Brent Pedersen wrote:
> On Tue, Apr 13, 2010 at 8:52 PM, Brent Pedersen wrote:
>> hi, i posted a patch to allow pickling of np.memmap objects.
>> http://projects.scipy.org/numpy/ticket/1452
>>
>> currently, it always returns 'r
On Tue, Apr 13, 2010 at 8:52 PM, Brent Pedersen wrote:
> hi, i posted a patch to allow pickling of np.memmap objects.
> http://projects.scipy.org/numpy/ticket/1452
>
> currently, it always returns 'r' for the mode.
> is that the best thing to do there?
> any other chan
hi, i posted a patch to allow pickling of np.memmap objects.
http://projects.scipy.org/numpy/ticket/1452
currently, it always returns 'r' for the mode.
is that the best thing to do there?
any other changes?
-brent
___
NumPy-Discussion mailing list
NumPy-
On Mon, Apr 12, 2010 at 3:31 PM, Brent Pedersen wrote:
> On Mon, Apr 12, 2010 at 3:08 PM, Robert Kern wrote:
>> On Mon, Apr 12, 2010 at 17:00, Brent Pedersen wrote:
>>> On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote:
>>>> On Mon, Apr 12, 2010 at 16:43, Gael V
On Mon, Apr 12, 2010 at 3:08 PM, Robert Kern wrote:
> On Mon, Apr 12, 2010 at 17:00, Brent Pedersen wrote:
>> On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote:
>>> On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux
>>> wrote:
>>>> On Mon, Apr 12, 2010
On Mon, Apr 12, 2010 at 2:46 PM, Robert Kern wrote:
> On Mon, Apr 12, 2010 at 16:43, Gael Varoquaux
> wrote:
>> On Mon, Apr 12, 2010 at 04:39:23PM -0500, Robert Kern wrote:
>>> > where should i write the docs? in the file itself or through the doc
>>> > editor? also re path, since it can be a fil
On Mon, Apr 12, 2010 at 1:59 PM, Robert Kern wrote:
> On Mon, Apr 12, 2010 at 15:52, Charles R Harris
> wrote:
>>
>> On Mon, Apr 12, 2010 at 2:37 PM, Charles R Harris
>> wrote:
>>>
>>> On Mon, Apr 12, 2010 at 1:55 PM, Brent Pedersen
>>> wrote
On Mon, Apr 12, 2010 at 9:49 AM, Robert Kern wrote:
> On Mon, Apr 12, 2010 at 04:03, Nadav Horesh wrote:
>>
>> Is there a way to get the file-name given a memmap array object?
>
> Not at this time. This would be very useful, though, so patches are welcome.
>
> --
> Robert Kern
>
> "I have come to
On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana wrote:
> Hi,
> Is there any utility function to find if values in the array are in
> ascending or descending order.
> Example:
> arr = [1, 2, 4, 6] should return true
> arr2 = [1, 0, 2, -2] should return false
> Thanks
> Vishal
>
> __
hi, i've seen this section:
http://docs.scipy.org/numpy/Questions+Answers/#the-out-argument
should _all_ functions with an optional out parameter have exactly that text?
so if i find a docstring with reasonable, but different doc for out,
should it be changed
to that?
and if a docstring of a func
On Fri, Jun 5, 2009 at 2:01 PM, Keith Goodman wrote:
> On Fri, Jun 5, 2009 at 1:22 PM, Brent Pedersen wrote:
>> On Fri, Jun 5, 2009 at 1:05 PM, Keith Goodman wrote:
>>> On Fri, Jun 5, 2009 at 1:01 PM, Keith Goodman wrote:
>>>> On Fri, Jun 5, 2009 at 12:53 PM, wr
On Fri, Jun 5, 2009 at 1:27 PM, Keith Goodman wrote:
> On Fri, Jun 5, 2009 at 1:22 PM, Brent Pedersen wrote:
>> On Fri, Jun 5, 2009 at 1:05 PM, Keith Goodman wrote:
>>> On Fri, Jun 5, 2009 at 1:01 PM, Keith Goodman wrote:
>>>> On Fri, Jun 5, 2009 at 12:53 PM, wr
On Fri, Jun 5, 2009 at 1:05 PM, Keith Goodman wrote:
> On Fri, Jun 5, 2009 at 1:01 PM, Keith Goodman wrote:
>> On Fri, Jun 5, 2009 at 12:53 PM, wrote:
>>> On Fri, Jun 5, 2009 at 2:07 PM, Brian Blais wrote:
Hello,
I have a vectorizing problem that I don't see an obvious way to solve.
On Sun, Mar 1, 2009 at 11:29 AM, Michael Gilbert
wrote:
> On Sun, 1 Mar 2009 16:12:14 -0500 Gideon Simpson wrote:
>
>> So I have some data sets of about 16 floating point numbers stored
>> in text files. I find that loadtxt is rather slow. Is this to be
>> expected? Would it be faster if it
On Tue, Feb 10, 2009 at 9:40 PM, A B wrote:
> Hi,
>
> How do I write a loadtxt command to read in the following file and
> store each data point as the appropriate data type:
>
> 12|h|34.5|44.5
> 14552|bbb|34.5|42.5
>
> Do the strings have to be read in separately from the numbers?
>
> Why would a
On Mon, Feb 9, 2009 at 6:02 AM, Neil wrote:
>
>> > I have two integer arrays of different shape, e.g.
>> >
>> > >>> a
>> >
>> > array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
>> >
>> > >>> b
>> >
>> > array([ 3, 4, 5, 6, 7, 8, 9, 10])
>> >
>> > How can I extract the values that belong to th
g fields we observed...).
> Let me know how it goes.
> P.
>
that fixes it. thanks again pierre!
-b
> On Feb 4, 2009, at 4:03 PM, Brent Pedersen wrote:
>
>> On Wed, Feb 4, 2009 at 9:36 AM, Pierre GM
>> wrote:
>>>
>>> On Feb 4, 2009, at 12:09 PM, Brent Pede
On Wed, Feb 4, 2009 at 2:50 PM, Pierre GM wrote:
> All,
> I'm a tad puzzled by the following behavior (I'm trying to correct a
> bug in genfromtxt):
>
> I'm creating an empty structured ndarray, using np.object as dtype.
>
> >>> a = np.empty(1,dtype=[('',np.object)])
> array([(None,)],
> dt
On Wed, Feb 4, 2009 at 9:36 AM, Pierre GM wrote:
>
> On Feb 4, 2009, at 12:09 PM, Brent Pedersen wrote:
>
>> hi, i am using genfromtxt, with a dtype like this:
>> [('seqid', '|S24'), ('source', '|S16'), ('type', '|S16&
hi, i am using genfromtxt, with a dtype like this:
[('seqid', '|S24'), ('source', '|S16'), ('type', '|S16'), ('start',
'http://projects.scipy.org/mailman/listinfo/numpy-discussion
On Wed, Jan 21, 2009 at 9:39 PM, Pierre GM wrote:
> Brent,
> Mind trying r6330 and let me know if it works for you ? Make sure that
> you use names=True to detect a header.
> P.
>
yes, works perfectly.
thanks!
-brent
___
Numpy-discussion mailing list
Nu
hi, i'm using the new genfromtxt stuff in numpy svn, looks great
pierre any who contributed.
is there a way to have the header commented and still be able to have
it recognized as the header? e.g.
#gender age weight
M 21 72.10
F 35 58.33
M 33 21.99
if i use np.loadtxt or genfromt
On Mon, Oct 27, 2008 at 2:45 PM, Ryan May <[EMAIL PROTECTED]> wrote:
> Brent Pedersen wrote:
>> On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern <[EMAIL PROTECTED]> wrote:
>>> On Mon, Oct 27, 2008 at 15:54, Erik Tollerud <[EMAIL PROTECTED]> wrote:
>>>>
On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 27, 2008 at 15:54, Erik Tollerud <[EMAIL PROTECTED]> wrote:
>> Is there any straightforward way of notifying on change of a numpy
>> array that leaves the numpy arrays still efficient?
>
> Not currently, no.
>
> -
On Thu, Sep 11, 2008 at 6:03 PM, Alan Jackson <[EMAIL PROTECTED]> wrote:
> There has got to be a simple way to do this, but I'm just not seeing it.
>
a = array([[1,2,3,4,5,6],
> [7,8,9,10,11,12]])
b = array([21,22,23,24,25,26])
>
> What I want to end up with is :
>
> c = arra
hi,
http://pypi.python.org/pypi/Shapely
supports the array interface, and has all the geos geometry operations:
http://gispython.org/shapely/manual.html#contains
On Tue, Aug 19, 2008 at 8:31 AM, mark <[EMAIL PROTECTED]> wrote:
> Hello List -
>
> I am looking for a good polygon class.
>
> My main i
it looks like you could use weave.blitz() without much change to your code.
or weave.inline() if needed. see this page:
http://scipy.org/PerformancePython
On 12/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello,
I'm taking a CFD class, one of the codes I wrote runs very slow. When I
loo
37 matches
Mail list logo