• Jason Swails's avatar
    A large number of unit cleanups and fix numpy wart · 4ae68749
    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
constants.py 2.13 KB