@paranoya np.array(quantity) removes the units and creates a new array of dtype=float (the default). Then, the default unit is always assigned after the check. In any case, an astropy.Quantity is a subclass of np.ndarrray, so there should not be problems when passing a single value...
@paranoya
np.array(quantity)
removes the units and creates a new array ofdtype=float
(the default). Then, the default unit is always assigned after the check. In any case, an astropy.Quantity is a subclass of np.ndarrray, so there should not be problems when passing a single value...