> On Fri, Nov 23, 2007 at 07:58:13AM -0500, Alan G Isaac wrote:
>> Specifically, is it not the case that the last line of
>> a text file is not guaranteed to have a terminator? Does
>> this not raise the possibility that a digit will be
>> clipped from the last line?
On Fri, 23 Nov 2007, Gae
On Fri, Nov 23, 2007 at 10:19:47AM -0600, Geoffrey Zhu wrote:
> One thing about triangulation I haven't figured out is how to add
> multiple such functions together. So if I have a set of triangles that
> represent f1(x,y) and another set of triangles that represent f2(x,y),
> is there any quick wa
> This seems to work without any problem now:
> class ndarray_inMrcFile(N.ndarray):
> def __array_finalize__(self,obj):
> self.Mrc = getattr(obj, 'Mrc', None)
>
> Comments?
That should work if you want a subclass of ndarray. That probably won't if you
want a s
> 2.) I guess the """class ndarray_inMrcFile(N.memmap):
> pass""" construct is to simplistic
>Could someone suggest a *minimal* definition, so that my attributes
> would be preserved ?
Mmh, I would at least try to explicitly call the N.memmap.__new__
> A few comments about the wiki pa
Hi Bob, Anne, and everyone,
On Nov 21, 2007 1:41 PM, Bob Lewis <[EMAIL PROTECTED]> wrote:
> On 11/20/07, Anne Archibald posted:
>
> > Subject:
> > Re: [Numpy-discussion] OT: A Way to Approximate and Compress a 3D Surface
> > From:
> > "Anne Archibald" <[EMAIL PROTECTED]>
> > Date:
> > Tue, 20 Nov
> First try seems to show that just changing my class def to:
> class ndarray_inMrcFile(N.memmap):
> def __array_finalize__(self,obj):
> self.Mrc = getattr(obj, 'Mrc', None)
>
> Seems to add the wanted attribute back into result of transpose().
Yep. Specific
On Nov 23, 2007 5:01 PM, Sebastian Haase <[EMAIL PROTECTED]> wrote:
>
> On Nov 23, 2007 4:43 PM, Sebastian Haase <[EMAIL PROTECTED]> wrote:
> > On Nov 23, 2007 3:37 PM, Pierre GM <[EMAIL PROTECTED]> wrote:
> > > On Friday 23 November 2007 03:25:37 Sebastian Haase wrote:
> > > > Hi,
> > > > this que
On Nov 23, 2007 4:43 PM, Sebastian Haase <[EMAIL PROTECTED]> wrote:
> On Nov 23, 2007 3:37 PM, Pierre GM <[EMAIL PROTECTED]> wrote:
> > On Friday 23 November 2007 03:25:37 Sebastian Haase wrote:
> > > Hi,
> > > this question might habe been answered before:
> > > I have my own ndarray-derived class
On Nov 23, 2007 3:37 PM, Pierre GM <[EMAIL PROTECTED]> wrote:
> On Friday 23 November 2007 03:25:37 Sebastian Haase wrote:
> > Hi,
> > this question might habe been answered before:
> > I have my own ndarray-derived class. I did this, so that I can add
> > another "custom attribute" -- let's say
>
Thanks, Matthieu.
On Nov 23, 2007, at 2:24 AM, Matthieu Brucher wrote:
> Hi,
>
> I submitted a ticket and then a patch for numpy.i
> (http://projects.scipy.org/scipy/numpy/ticket/620). the problem is
> that some typemaps use a C99 syntax whereas most C compiler still are
> only C89 compliant (mai
Hi Sebastian
On Fri, Nov 23, 2007 at 09:25:37AM +0100, Sebastian Haase wrote:
> Hi,
> this question might habe been answered before:
> I have my own ndarray-derived class. I did this, so that I can add
> another "custom attribute" -- let's say
> arr.filename
> All works very except, except when I
Hi all,
Ticket 618 [1] proposes a patch to make numpy pass all tests on
FreeBSD. Would anyone familiar with FreeBSD please glance over the
patch, apply it and make sure that it works as intended?
Thanks
Stéfan
[1] http://scipy.org/scipy/numpy/ticket/618
_
On Fri, Nov 23, 2007 at 10:24:07AM +0100, Matthieu Brucher wrote:
> I submitted a ticket and then a patch for numpy.i
> (http://projects.scipy.org/scipy/numpy/ticket/620). the problem is
> that some typemaps use a C99 syntax whereas most C compiler still are
> only C89 compliant (mainly Visual Stud
On Friday 23 November 2007 03:25:37 Sebastian Haase wrote:
> Hi,
> this question might habe been answered before:
> I have my own ndarray-derived class. I did this, so that I can add
> another "custom attribute" -- let's say
> arr.filename
Sebastian,
Could you post the __new__ and __array_finalize
On Fri, Nov 23, 2007 at 07:58:13AM -0500, Alan G Isaac wrote:
> > On Thu, Nov 22, 2007 at 11:14:07PM -0500, Alan G Isaac wrote:
> >> In numpy.core.numeric.py you will find loadtxt, which uses
> >> the following::
> >> line = line[:line.find(comments)].strip()
> On Fri, 23 Nov 2007, Gael
> On Thu, Nov 22, 2007 at 11:14:07PM -0500, Alan G Isaac wrote:
>> In numpy.core.numeric.py you will find loadtxt, which uses
>> the following::
>> line = line[:line.find(comments)].strip()
On Fri, 23 Nov 2007, Gael Varoquaux apparently wrote:
> Unless you are sure that line always ends
Hi,
I submitted a ticket and then a patch for numpy.i
(http://projects.scipy.org/scipy/numpy/ticket/620). the problem is
that some typemaps use a C99 syntax whereas most C compiler still are
only C89 compliant (mainly Visual Studio).
Matthieu
--
French PhD student
Website : http://miles.develop
Rahul Garg wrote:
>a) Can you guys tell me briefly about the kind of problems you are
>tackling with numpy and scipy?
>
>
Reduction of large N-body simulations of astrophysical gravitational
systems (N up to 268 millions).
See http://aramis.obspm.fr/~revaz/pNbody/.
>b) Have you ever felt that
Hi,
this question might habe been answered before:
I have my own ndarray-derived class. I did this, so that I can add
another "custom attribute" -- let's say
arr.filename
All works very except, except when I do
arr2 = arr.transpose()
my arr2 is still of the *type* of my derived class, however tryin
On Nov 23, 2007 3:02 AM, Matthieu Brucher <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to get numpy work with AMD's MKL. The problem is that they not
> give a CBLAS interface, only the BLAS one.
> Can the numpy distutils check the existence of the cblas interface somewhere
> ? For the moment, it
On Fri, Nov 16, 2007 at 07:50:07PM -0700, Rahul Garg wrote:
> It would be awesome if you guys could respond to some of the following
> questions :
OK, I'll take a bit of time to do this.
> a) Can you guys tell me briefly about the kind of problems you are
> tackling with numpy and scipy?
My day-
21 matches
Mail list logo