src/jpyEDM_v0.py
def onTargetCCMClick( change ):
    '''Save targetCCM click order into targetCCMOrder'''
    global targetCCMOrder

    if len( change['new'] ) == 1 :
        targetCCMOrder = list( change['new'] )
        return

    for target in change['new']:
        if target not in targetCCMOrder:
            targetCCMOrder.append( target )

    for target in targetCCMOrder:
        if target not in change['new']:
            targetCCMOrder.remove( target )
Save targetCCM click order into targetCCMOrder
Save targetCCM click order into targetCCMOrder
Save targetCCM click order into targetCCMOrder
def onTargetCCMClick( change ):
    global targetCCMOrder
    if len( change['new'] ) == 1 :
        targetCCMOrder = list( change['new'] )
        return
    for target in change['new']:
        if target not in targetCCMOrder:
            targetCCMOrder.append( target )
    for target in targetCCMOrder:
        if target not in change['new']:
            targetCCMOrder.remove( target )
def onTargetCCMClick ( change ) : global targetCCMOrder if len ( change [ 'new' ] ) == 1 : targetCCMOrder = list ( change [ 'new' ] ) return for target in change [ 'new' ] : if target not in targetCCMOrder : targetCCMOrder . append ( target ) for target in targetCCMOrder : if target not in change [ 'new' ] : targetCCMOrder . remove ( target )
Save targetCCM click order into targetCCMOrder
Save targetCCM click order into targetCCMOrder
'''Save targetCCM click order into targetCCMOrder'''
change