old_code/varitem.py
def _setSelMotor(self):
        """Selected motor display item - depends on several values from
        the telemetry stream.  The logic here matches that in RTCADS,
        although it looks inefficient.
        """
        self.state = 'off'
        self.value = 'NA'
        testset = [('M_CalSrcSel', 'CalSrc', 'warn'),
                   ('M_DoorSel', 'Door', 'warn'),
                   ('M_MYShutterSel', '-Y', 'warn'),
                   ('M_PYShutterSel', '+Y', 'warn'),
                   ('M_AllMotorsUnSel', 'None', 'good')]
        alarmactive = VarItem.alarmSet['SelectedMotor']['status']
        for (var, res, s) in testset:
            if 'Sel' == VarItem.data_dict[var][0]:
                self.value = res
                if alarmactive:
                    self.state = s
Selected motor display item - depends on several values from
        the telemetry stream.  The logic here matches that in RTCADS,
        although it looks inefficient.
        
Selected motor display item - depends on several values from
the telemetry stream.  The logic here matches that in RTCADS,
although it looks inefficient.
Selected motor display item - depends on several values from the telemetry stream . The logic here matches that in RTCADS although it looks inefficient .
def _setSelMotor(self):
        self.state = 'off'
        self.value = 'NA'
        testset = [('M_CalSrcSel', 'CalSrc', 'warn'),
                   ('M_DoorSel', 'Door', 'warn'),
                   ('M_MYShutterSel', '-Y', 'warn'),
                   ('M_PYShutterSel', '+Y', 'warn'),
                   ('M_AllMotorsUnSel', 'None', 'good')]
        alarmactive = VarItem.alarmSet['SelectedMotor']['status']
        for (var, res, s) in testset:
            if 'Sel' == VarItem.data_dict[var][0]:
                self.value = res
                if alarmactive:
                    self.state = s
def _setSelMotor ( self ) : self . state = 'off' self . value = 'NA' testset = [ ( 'M_CalSrcSel' , 'CalSrc' , 'warn' ) , ( 'M_DoorSel' , 'Door' , 'warn' ) , ( 'M_MYShutterSel' , '-Y' , 'warn' ) , ( 'M_PYShutterSel' , '+Y' , 'warn' ) , ( 'M_AllMotorsUnSel' , 'None' , 'good' ) ] alarmactive = VarItem . alarmSet [ 'SelectedMotor' ] [ 'status' ] for ( var , res , s ) in testset : if 'Sel' == VarItem . data_dict [ var ] [ 0 ] : self . value = res if alarmactive : self . state = s
Selected motor display item - depends on several values from
the telemetry stream.
Selected motor display item - depends on several values from the telemetry stream .
"""Selected motor display item - depends on several values from
        the telemetry stream.  The logic here matches that in RTCADS,
        although it looks inefficient.
        """
self