DimensionlessUnitSystem

class gala.units.DimensionlessUnitSystem[source]

Bases: gala.units.UnitSystem

Methods 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 : Quantity

An instance of an astropy Quantity object.

Returns:

q : Quantity

A new quantity, decomposed to represented in this unit system.

get_constant(name)[source]
to_dict()[source]