[Numpy-discussion] patch for new mgrid / ogrid functionality

Travis E. Oliphant oliphant at enthought.com
Sat Sep 13 15:03:48 EDT 2008


Stéfan van der Walt wrote:
> 2008/9/13 Travis E. Oliphant <oliphant at enthought.com>:
>   
>> Generally, it is O.K. except that he changes the output from a numpy
>> array to a list of numpy arrays.  This is a small change, but it is an
>> API change.   I'm not sure why he found it necessary to do that, but it
>> would be easier to apply the patch if it didn't change the API.
>>     
>
> The example he gave illustrated having a mixed bag of types in one
> grid.  You can do that with two arrays, but not one, unless you use
> object-arrays for everything.  Maybe that makes sense.
>
>   
I don't see why you have to use object-arrays for everything, but 
obviously you would for the mixed types.

-Travis




More information about the NumPy-Discussion mailing list