Next / Previous / Contents / TCC Help System / NM Tech homepage

10. class MixedUnits: Operations on mixed-unit systems

sidereal.py
# - - - - -   c l a s s   M i x e d U n i t s

class MixedUnits:
    """Represents a system with mixed units, e.g., hours/minutes/seconds
    """

10.1. MixedUnits.__init__(): Constructor

The constructor has little to do except store its argument in the instance.

sidereal.py
# - - -   M i x e d U n i t s . _ _ i n i t _ _

    def __init__ ( self, factors ):
        """Constructor
        """
        self.factors  =  factors