to_astropy¶
-
amuse_util.units.convert.
to_astropy
(quantity)[source]¶ Convert AMUSE quantity to astropy quantity.
only amuse quantities need to be converted. floats and astropy quantities are left as is.
- Parameters
- quantity: AMUSE quantity or array-like
- Returns
- quantity: astropy quantity or array-like
Notes
requires that amuse units are string represented in astropy