-
Jason Swails authored
The main thing that's done here is that numpy arrays can be given units via the * operator, rather than relying on the Quantity constructor e.g., >>> import numpy as np >>> np.zeros(10) * u.angstroms Quantity(value=array([ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]), unit=angstrom) yay!
4ae68749