quantity : {number, np.ndarray, simtk.unit.Quantity}
quantity can either be a unitted quantity – i.e. instance of
simtk.unit.Quantity, or just a bare number or numpy array
units_in : str
If you supply a quantity that’s not a simtk.unit.Quantity, you should
tell me what units it is in. If you don’t, i’m just going to echo you
back your quantity without doing any unit checking.
units_out : str
A string description of the units you want out. This should look
like “nanometers/picosecondsecond” or “nanometers**3” or whatever
inplace : bool
Attempt to do the transformation inplace, by mutating the quantity
argument and avoiding a copy. This is only possible if quantity is a
writable numpy array.
|