コード例 #1
0
        fuTriggerLinks += " <a href=\"" + fu_link + "\">Triggers versus time (" + window + ")</a><br>"
page.td(fuTriggerLinks)
page.td()
page.tr.close()

# Row #11
######################
#Code to perform test
resultString = (" <table border=1px>\
 <tr><th>IFO:IFO</th><th>ToF</th><th>Deff Ratio</th><th>Prob</th><th>Figure</th></tr>"
                )
#Text insert into page giving the SNR ratio probabilities
preBuiltPickle = opts.defaultRatioTestPickle
if opts.defaultRatioTestPickle == None:
    preBuiltPickle = ""
ratioTest = fu_utils.ratioTest()
if os.path.isfile(preBuiltPickle):
    ratioTest.setPickleLocation(preBuiltPickle)
#Create list of unique IFO pairings
pairingList = list()
for A, a in enumerate(ifolist):
    for B, b in enumerate(ifolist):
        if (A != B) and not pairingList.__contains__([B, b, A, a]):
            pairingList.append([A, a, B, b])
#Process unique list of IFO pairings
for index1, ifo1, index2, ifo2 in pairingList:
    ifoA = ratioTest.mapToObservatory(ifo1)
    ifoB = ratioTest.mapToObservatory(ifo2)
    if ifoA != ifoB:
        gpsA = numpy.float64(opts.trigger_gps.split(",")[index1].strip())
        gpsB = numpy.float64(opts.trigger_gps.split(",")[index2].strip())
コード例 #2
0

pickleFile=opts.snr_ratio_test
ifo1=opts.ifo1
ifo2=opts.ifo2
ifo3=opts.ifo3
snr1=opts.snr1
snr2=opts.snr2
snr3=opts.snr3
time1=opts.time1
time2=opts.time2
time3=opts.time3
outputFile=opts.output_file
outputType=opts.output_format
#
test=ratioTest()
test.setPickleLocation(pickleFile)
#Create ifo,snr,time listing if the opts are not(None)
ifoPairs=list()
if not any([((x==None) or (x.lower()=='none')) for x in [ifo1,snr1,time1]]):
    ifoPairs.append([ifo1,snr1,time1])
if not any([((x==None) or (x.lower()=='none')) for x in [ifo2,snr2,time2]]):
    ifoPairs.append([ifo2,snr2,time2])
if not any([((x==None) or (x.lower()=='none')) for x in [ifo3,snr3,time3]]):    
    ifoPairs.append([ifo3,snr3,time3])
#
if len(ifoPairs)<2:
    raise Exception, "Insufficient IFO input arguments!"

rawResults=test.checkPairs(ifoPairs)
#
コード例 #3
0
    window = fu_link.split("-")[-1].strip(".html")
    fuTriggerLinks += " <a href=\"" + fu_link + "\">Triggers versus time (" + window + ")</a><br>"
page.td(fuTriggerLinks)
page.td()
page.tr.close()

# Row #11
######################
#Code to perform test
resultString=(" <table border=1px>\
 <tr><th>IFO:IFO</th><th>ToF</th><th>Deff Ratio</th><th>Prob</th><th>Figure</th></tr>")
#Text insert into page giving the SNR ratio probabilities
preBuiltPickle=opts.defaultRatioTestPickle
if opts.defaultRatioTestPickle == None:
  preBuiltPickle=""
ratioTest=fu_utils.ratioTest()
if os.path.isfile(preBuiltPickle):
  ratioTest.setPickleLocation(preBuiltPickle)
#Create list of unique IFO pairings
pairingList=list()
for A,a in enumerate(ifolist):
  for B,b in enumerate(ifolist):
    if (A!=B) and not pairingList.__contains__([B,b,A,a]):
      pairingList.append([A,a,B,b])
#Process unique list of IFO pairings
for index1,ifo1,index2,ifo2 in pairingList:
  ifoA=ratioTest.mapToObservatory(ifo1)
  ifoB=ratioTest.mapToObservatory(ifo2)
  if ifoA != ifoB:
    gpsA=numpy.float64(opts.trigger_gps.split(",")[index1].strip())
    gpsB=numpy.float64(opts.trigger_gps.split(",")[index2].strip())