astropy/astropy — pull request #2402 by astrofrog (2014-05-01 13:50:17+00:00)
Title: Implemented Quantity-aware wrappers for assert_allclose and linspace

As discussed in https://github.com/astropy/astropy/issues/1274, it would be great to have Quantity-aware wrappers to some Numpy functions. We don't have to monkey-patch these, we can just provide them in a separate namespace. This PR can be used e.g. as:

```
In [2]: from astropy import units as u

In [3]: from astropy.units import numpy_wrappers as unp

In [4]: unp.linspace(1 * u.cm, 1. * u.m, 100)
Out[4]:

```

I'd like to include a few functions like this in 0.4 if there are no objections.