DimensionlessUnitSystem¶
-
class
gala.units.DimensionlessUnitSystem[source]¶ Bases:
gala.units.UnitSystemMethods Summary
decompose(q)A thin wrapper around astropy.units.Quantity.decompose()that knows how to handle Quantities with physical types with non-default representations.get_constant(name)to_dict()Methods Documentation
-
decompose(q)¶ A thin wrapper around
astropy.units.Quantity.decompose()that knows how to handle Quantities with physical types with non-default representations.Parameters: q :
QuantityAn instance of an astropy Quantity object.
Returns: q :
QuantityA new quantity, decomposed to represented in this unit system.
-