Changeset 13814


Ignore:
Timestamp:
05/22/12 12:36:30 (13 years ago)
Author:
neise
Message:
evolving
Location:
fact/tools/PyDimCtrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/PyDimCtrl/factdimserver.py

    r13812 r13814  
    3030        self.user_func = None
    3131        self.__delay_between_cmds = 1.0
    32         seld.__delay_between_services = 1.0
     32        self.__delay_between_services = 1.0
    3333        self.__last_cmd_send = -1*float('inf')
    3434        self.__last_service_got = -1*float('inf')
     
    4646            desc = 'I'
    4747            args=(1,)
     48        elif desc == 'O':
     49            args = (0,)
    4850        while not time.time() - self.__last_cmd_send > self.__delay_between_cmds:
    4951            time.sleep(0.5)
  • fact/tools/PyDimCtrl/pyfactctrl.py

    r13813 r13814  
    55source_list = { '1ES 1218+304' : [( 0.6, -5), (0.6, 175)] ,\
    66    'Crab' : [(0.6, 50), (0.6, -130)], \
    7     'Mrk 421' : [(0.6, 90),(0.6, -90)] \
     7    'Mrk 421' : [(0.6, 90),(0.6, -90)], \
    88    'Mrk 501' : [(0.6, 90),(0.6, -90)] }
    99
     
    5656        if not WaitToCalmDown( CalmDownTime, verbose = True):
    5757            msg.fail("a problem in WaitToCalmDown(). drive state: "+drive.sts)
    58             return False:
     58            return False
    5959   
    6060    msg.ok('Tracking Source '+SrcName + ' Angle:'+str(Angle)+' Shift:'+str(Shift))
     
    200200
    201201    fad.reset_secondary_drs_baseline()
    202     if roi == 300
     202    if roi == 300:
    203203        Take( -1, 1000, 'pedestal')
    204204        fad.set_file_format(2)
     
    289289
    290290
    291 def VoltageOff
    292291def std_bias_watchdog( state, verbose=True ):
    293292    msg = MSG(verbose)
Note: See TracChangeset for help on using the changeset viewer.