On Tue, Oct 31, 2017 at 3:15 PM, William Sheffler
wrote:
> Thank you all kindly for your responses! Based on your encouragement, I
> will pursue an ndarray subclass / __array_ufunc__ implementation. I had
> been toying with np.set_numeric_ops, which is less than ideal (for example,
> np.ndarray.a
Thank you all kindly for your responses! Based on your encouragement, I
will pursue an ndarray subclass / __array_ufunc__ implementation. I had
been toying with np.set_numeric_ops, which is less than ideal (for example,
np.ndarray.around segfaults if I use set_numeric_ops in any way).
A second que
> Date: Fri, 27 Oct 2017 17:52:23 -0400
> From: Marten van Kerkwijk
>
> Hi Peter,
>
> When using units, if `a` is not angular (or dimensionless), I don't
> see how one could write code in which your example wouldn't fail...
> But I may be missing something, since for your example one would just
> r