def test (self): """ @since: 0.4.0 1. test it traps errors when trying to write into a closed log file. """ is_uid([generate_uuid()])
'usrdn': usrdn } return report ######################################################################## if __name__ == '__main__': starttime = time.time() print '--------------' print 'DQ2 tracer preparation ...' usrDN = commands.getstatusoutput('voms-proxy-info -identity')[1] # Event uuid uuid = generate_uuid() # Read LFC and transfer time produced in ganga-stage-in-out-dq2.py # or make-filestager-joboption.py tracertimes = [line.strip() for line in file('dq2tracertimes.txt')] # User hash #m=md5.new() md.update(usrDN) usrhex = md.hexdigest() numfiles3 = 0 filepat = '"PFN:(.+)"' selectorpat = 'ServiceMgr.EventSelector.InputCollections = \[(.+),\]' selectorpat2 = 'mySampleList = \[(.+)\]' sitepat = 'detected DQ2_LOCAL_SITE_ID: (.+)' datasetnamepat = '^DATASETNAME=(.+)'
'appid': appid, 'usrdn': usrdn } return report ######################################################################## if __name__ == '__main__': starttime = time.time() print '--------------' print 'DQ2 tracer preparation ...' usrDN = commands.getstatusoutput('voms-proxy-info -identity')[1] # Event uuid uuid = generate_uuid() # Read LFC and transfer time produced in ganga-stage-in-out-dq2.py # or make-filestager-joboption.py tracertimes = [ line.strip() for line in file('dq2tracertimes.txt') ] # User hash #m=md5.new() md.update(usrDN) usrhex = md.hexdigest() numfiles3 = 0 filepat = '"PFN:(.+)"' selectorpat = 'ServiceMgr.EventSelector.InputCollections = \[(.+),\]' selectorpat2 = 'mySampleList = \[(.+)\]' sitepat = 'detected DQ2_LOCAL_SITE_ID: (.+)' datasetnamepat = '^DATASETNAME=(.+)'