On Wed, May 20, 2009 at 2:11 PM, Ryan May <rma...@gmail.com> wrote:

>
>
> On Wed, May 20, 2009 at 1:10 PM, Christopher Barker <chris.bar...@noaa.gov
> > wrote:
>
>> > Darren Dale was working on a full-fledged package for adding units to
>> > numpy arrays called quantities
>> > (http://packages.python.org/quantities/user/tutorial.html),
>>
>> thanks for the reminder -- that does look like a really nice package. It
>> would be great to have a semi-standard for this stuff in the SciPy world
>> -- and certainly MPL compatible!
>>
>> > last I saw it stalled a little due to issues with subclassing ndarray.
>>
>> Darn. I hope I'll get a chance to delve into it soon.
>
>
> That's not to say that it's not currently functional, I just believe that
> some ufuncs don't work properly and that there are some corner cases that
> don't work, which I think is why Darren hasn't made an official
> release/announcement.  Last time I played with it however, it was quite
> useful.
>

I have been waiting to make an announcement because I am in the middle of
overhauling the unit tests, I want them to be more robust and cleaner than
they are at present. I also wanted to see whether it would be possible to
make an addition to numpy's ufunc mechanism so existing ufuncs can perform a
units operation on the way in (so an error can be raised in case of an
illegal operation before data is changed in place, for example), rather than
on the way out (currently done using ndarray.__array_wrap__). Aside from
this corner case, I think all of the common arithmetic ufuncs already just
work, and Quantities should already useable. It needs a couple easy tweaks
to make some operations easier, and I need input from the community about
how much magic is appropriate (right now inches + feet raises an error,
since its not clear what units are desired for the result). It would
probably not take much work to implement missing features and ufuncs,
especially if a few others were interested in helping out ;)

Darren
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to