• Jason Swails's avatar
    Delete now out-of-date docs as well as adding __array_priority__ to Quantity. · ba1af1ee
    Jason Swails authored
    This should be *lower* than that of Unit (and ScaledUnit/BaseUnit), since we
    still want Units to take priority over Quantities (but Quantity to take
    precedence over regular ndarrays) for reasons like this:
    
    >>> a = np.array([1]) * u.angstroms
    >>> b = a * u.angstroms # should be np.array([1])*u.angstroms**2
    >>> np.arange(10) * a # utilize broadcasting
    [1 2 3 4 5 6 7 8 9 10] A**2
    ba1af1ee
quantity.py 31.4 KB