def pf( source, point=False, startNominal=True, apply=False ) : SAC.track( source ) if point : rp.radioPoint( source, type='triangle', timeLimit=5. ) SAC.intent(source,"S") antList = SAC.currentAntennaNumbers() SAC.tsys() refocus( antList, '/array/rt/focus/focusCurves', startNominal, apply ) if not apply : restoreFocus( )
def restoreFocus( ) : antList = SAC.currentAntennaNumbers() for ant in antList : SAC.focus( None, None, f0[ant-1], ant ) if focusMoving( antList) : print "hey - timed out and a focus is still changing!"