astropy/astropy — pull request #1384 by alexrudy (2013-08-28 16:23:39+00:00)
Title: Complex Quantities, conversion, and dimensionless quantities

I could see some reasoning in not usually allowing complex quantities. I'm however not sure why I can't do this:

```
>>> u.Quantity(4+5j).to('')
ValueError: Value not scalar compatible or convertable into a float or integer array
```

If the Quantity is unscaled, surely we should be able to return the dimensionless complex number. Even if it is scaled, is there a reason we can't return the unscaled quantity?

This comes up a lot when manipulating the results of FFTs, which have units, but often have dimensionless exponentials.

I'm happy to patch astorpy.units.core to accept complex values, but that might be too lenient (I'm not sure...)