rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
self.add_var_opt(param,value)
def __init__(self, dag, job, cp, opts, sngl, frame_cache, chia, tag, p_nodes=[]):
1d62e8501fe5a09856b38aebf1337aced30aab29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1d62e8501fe5a09856b38aebf1337aced30aab29/stfu_pipe.py
inspiral.ChiaNode.__init__(self,job)
pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self)
def __init__(self, dag, job, cp, opts, coinc, inspiral_node_dict, chia_node =None, p_nodes = []):
1d62e8501fe5a09856b38aebf1337aced30aab29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1d62e8501fe5a09856b38aebf1337aced30aab29/stfu_pipe.py
background_livetime.setdefault(key, {})
background_livetime.setdefault(key, {})
def background_livetime_nonring_by_slide(connection, seglists, veto_segments=None, verbose = False): # get the segment lists and live time # FIXME veto segments not handled yet zero_lag_time_slides, background_time_slides = SnglBurstUtils.get_time_slides(connection) instruments = frozenset(seglists.keys()) background_l...
a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26/farutils.py
offset_vectors = db_thinca_rings.get_background_offset_vectors(connection)
offset_vectors = db_thinca_rings.get_background_offset_vectors(connection)
def background_livetime_ring_by_slide(connection, live_time_program, seglists, veto_segments, verbose = False): background_livetime = {} instruments = frozenset(seglists.keys()) offset_vectors = db_thinca_rings.get_background_offset_vectors(connection) # first work out time slide live time for on_instruments, livetimes...
a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26/farutils.py
else:
else:
def playground_nonplayground_livetime(seglists, playground_segs=None, verbose=False): playground_livetime = {} nonplayground_livetime = {} instruments = frozenset(seglists.keys()) for on_inst, off_inst in detector_combos(list(instruments)): on_inst = frozenset(on_inst) off_inst = frozenset(off_inst) key = lsctables.ifo...
a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26/farutils.py
def get_veto_segments(connection, program_name, veto_segments_name=None): veto_segments = segments.segmentlistdict() #FIXME only handles thinca case if not veto_segments_name: return veto_segments if program_name == "thinca": veto_segments = db_thinca_rings.get_veto_segments(connection, veto_segments_name) return veto_...
a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26/farutils.py
def get_segments(connection, xmldoc, program_name):
def get_segments(connection, xmldoc, program_name):
def get_segments(connection, xmldoc, program_name): seglists = segments.segmentlistdict() if program_name == "thinca": seglists = db_thinca_rings.get_thinca_zero_lag_segments(connection, program_name) if program_name == "gstlal_inspiral": seglists = llwapp.segmentlistdict_fromsearchsummary(xmldoc, program_name).coalesc...
a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a1ce546623ebcaadbd3b00da61a6cbcccc6f4d26/farutils.py
twoDGreedyCL['ra_sb,dec_sb']=skyinjectionconfidence if min_sky_area_containing_injection: twoDGreedyInj['ra_sb,dec_sb']=min_sky_area_containing_injection
twoDGreedyInj['ra_sb,dec_sb']={} twoDGreedyInj['ra_sb,dec_sb']['confidence']=min_sky_area_containing_injection if min_sky_area_containing_injection: twoDGreedyInj['ra_sb,dec_sb']['area']=min_sky_area_containing_injection
def cbcBayesSkyRes(outdir,data,oneDMenu,twoDGreedyMenu,GreedyRes,confidence_levels,twoDplots,injfile=None,eventnum=None,skyres=None,bayesfactornoise=None,bayesfactorcoherent=None): if eventnum is not None and injfile is None: print "You specified an event number but no injection file. Ignoring!" if data is None: prin...
130fc48b9e1771d79cd18fd3d01a9e30a5de57b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/130fc48b9e1771d79cd18fd3d01a9e30a5de57b4/cbcBayesSkyRes.py
self.scan_type = type
self.scan_type = type.replace("seismic","seis").upper()
def __init__(self, dag, job, cp, opts, ifo, p_nodes=[], type=""):
fb58c7d349a492c8a0f47de21dc07f423e29b187 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb58c7d349a492c8a0f47de21dc07f423e29b187/stfu_pipe.py
libraries=['boost_python-mt']
libraries=['boost_python']
def pkgconfig(*packages, **kw): import commands flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'} for token in commands.getoutput("pkg-config --libs --cflags %s" % ' '.join(packages)).split(): kw.setdefault(flag_map.get(token[:2]), []).append(token[2:]) return kw
e407fee51cc42713b142dc073e9174281c344a46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e407fee51cc42713b142dc073e9174281c344a46/setup.py
html_tcmp_write+='<td width="30%"><img width="100%" src="2Dkde/'+twoDKdePath+'"/></td>'
html_tcmp_write+='<td width="30%"><img width="100%" src="2Dkde/'+figname+'"/></td>'
def cbcBayesPostProc(outdir,data,oneDMenu,twoDGreedyMenu,GreedyRes,confidence_levels,twoDplots,injfile=None,eventnum=None,skyres=None,bayesfactornoise=None,bayesfactorcoherent=None): """ This is a demonstration script for using the functionality/data structures contained in pylal.bayespputils . It will produce a webpag...
26f369b18f86dc93cbff7432b20d1a0333a824d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/26f369b18f86dc93cbff7432b20d1a0333a824d0/cbcBayesPostProc.py
for name, value in params_func(events, offsetdict, *params_func_extra_args).items():
for name, value in sorted(params_func(events, offsetdict, *params_func_extra_args).items()):
def P(self, params_func, events, offsetdict, *params_func_extra_args): P_bak = 1.0 P_inj = 1.0 for name, value in params_func(events, offsetdict, *params_func_extra_args).items(): P_bak *= self.background_rates[name](*value)[0] P_inj *= self.injection_rates[name](*value)[0] return P_bak, P_inj
b0ba186b9c05b4df6bfd6b29a84583ddaa25de5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/b0ba186b9c05b4df6bfd6b29a84583ddaa25de5d/ligolw_burca2.py
posidx=find(wt>maxwt+log(randoms))
posidx=[i for i in range(0,size(weights)) if wt[i]>maxwt+log(randoms[i]) ]
def nest2pos(samps,weights): randoms=rand(size(samps,0)) wt=weights+samps[:,-1] maxwt=max(wt) posidx=find(wt>maxwt+log(randoms)) pos=samps[posidx,:] return pos
6725f1ab3cb24ec0178d5cc8d40d8b7a798f3daf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6725f1ab3cb24ec0178d5cc8d40d8b7a798f3daf/combine_evidence.py
os.path.join("bin", "search_volume_by_s1_s2"),
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
d10f4813c1e5c0c77a2fbd3e48515c11d39b7a30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d10f4813c1e5c0c77a2fbd3e48515c11d39b7a30/setup.py
def __init__(self,cp,ifo):
def __init__(self,cp,ifo,timeref):
def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan']
0e0ff4ad143c0e66865518a30b44d00ea912aafb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0e0ff4ad143c0e66865518a30b44d00ea912aafb/wscan_background.py
qscanConfig = string.strip(cp.get("fu-"+depQscan, depIfoIniConfig))
qscanConfig = self.fix_config_for_science_run( cp.get("fu-"+depQscan, depIfoIniConfig).strip(), timeref )
def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan']
0e0ff4ad143c0e66865518a30b44d00ea912aafb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0e0ff4ad143c0e66865518a30b44d00ea912aafb/wscan_background.py
if opts.prepare_scan_ccin2p3: for ifo in cp.get("fu-remote-jobs","remote-ifos").strip().split(","): CCRemoteScans = prepareLyonRemoteScans(cp,ifo)
def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan']
0e0ff4ad143c0e66865518a30b44d00ea912aafb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0e0ff4ad143c0e66865518a30b44d00ea912aafb/wscan_background.py
if ifo in cp.get("fu-remote-jobs","remote-ifos").strip().split(",") and timeListFile:
if ifo in cp.get("fu-remote-jobs","remote-ifos").strip().split(",") and timeListFile and CCRemoteScans:
def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan']
0e0ff4ad143c0e66865518a30b44d00ea912aafb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0e0ff4ad143c0e66865518a30b44d00ea912aafb/wscan_background.py
if opts.prepare_scan_ccin2p3:
if opts.prepare_scan_ccin2p3 and CCRemoteScans:
def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan']
0e0ff4ad143c0e66865518a30b44d00ea912aafb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0e0ff4ad143c0e66865518a30b44d00ea912aafb/wscan_background.py
def add(self, *args): packing.Bin.add(self, *args)
def add(self, cache_entry): packing.Bin.add(self, cache_entry, cache_entry.to_segmentlistdict())
def add(self, *args): packing.Bin.add(self, *args) self.extent = self.size.extent_all() return self
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
new.add(cache_entry, cache_entry.to_segmentlistdict())
new.add(cache_entry)
def pack(self, cache_entry): """ Find all bins in which this glue.lal.CacheEntry instance belongs, merge them, and add this cache entry to the result. Create a new bin for this cache entry if it does not belong in any of the existing bins.
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
splits = [-segments.infinity()] + [lsctables.LIGOTimeGPS(origbin.extent[0] + i * float(origbin.extent[1] - origbin.extent[0]) / n) for i in range(1, n)] + [+segments.infinity()]
extents = [-segments.infinity()] + [lsctables.LIGOTimeGPS(origbin.extent[0] + i * float(abs(origbin.extent)) / n) for i in range(1, n)] + [+segments.infinity()]
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
print >>sys.stderr, "\tsplitting cache spanning %s at %s" % (str(origbin.extent), ", ".join(str(split) for split in splits[1:-1])) splits = [segments.segmentlist([segments.segment(*bounds)]) for bounds in zip(splits[:-1], splits[1:])] splits = [segments.segmentlistdict.fromkeys(origbin.size, seglist) for seglist in spl...
print >>sys.stderr, "\tsplitting cache spanning %s at %s" % (str(origbin.extent), ", ".join(str(extent) for extent in extents[1:-1])) extents = [segments.segment(*bounds) & origbin.extent for bounds in zip(extents[:-1], extents[1:])]
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
for split in splits:
for extent in extents:
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
newbins[-1].size = origbin.size & split for key in tuple(newbins[-1].size): if not newbins[-1].size[key]: del newbins[-1].size[key] newbins[-1].extent = newbins[-1].size.extent_all() for bin in newbins: bin_extent_plus_max_gap = bin.extent.protract(cafepacker.max_gap)
extent_plus_max_gap = extent.protract(cafepacker.max_gap)
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
if cache_entry.segment.disjoint(bin_extent_plus_max_gap):
if cache_entry.segment.disjoint(extent_plus_max_gap):
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
if cache_entry_segs.intersects_segment(bin.extent):
if cache_entry_segs.intersects_segment(extent):
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
bin.objects.append(cache_entry)
newbins[-1].add(cache_entry)
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """ # # loop over all bins in cafepacker.bins # idx = 0 while idx < len(cafepacker.bins): # # retrieve bin # origbin = cafepacker.bins[idx] # # how many pieces? if bin d...
6919fdcc32ae7785ae5d13621be098432be0abdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6919fdcc32ae7785ae5d13621be098432be0abdf/ligolw_cafe.py
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
for f in input_filelist: print >>dagfile, """ <filename file="%s" link="input"/>""" % f
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
for f in inout_filelist: print >>dagfile, """ <filename file="%s" link="inout"/>""" % f
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
for f in output_filelist: print >>dagfile, """ <filename file="%s" link="output"/>""" % f
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
<file-server protocol="file" url="file://" mount-point="/home/dbrown/projects/cbc/dax/ihope-dax3.0/847555570-847641970">
<file-server protocol="file" url="file://" mount-point="%s">
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
<internal-mount-point mount-point="/home/dbrown/projects/cbc/dax/ihope-dax3.0/847555570-847641970" free-size="null" total-size="null"/>
<internal-mount-point mount-point="%s" free-size="null" total-size="null"/>
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
<file-server protocol="file" url="file://" mount-point="/home/dbrown/projects/cbc/dax/ihope-dax3.0/847555570-847641970">
<file-server protocol="file" url="file://" mount-point="%s">
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
<internal-mount-point mount-point="/home/dbrown/projects/cbc/dax/ihope-dax3.0/847555570-847641970" free-size="null" total-size="null"/>
<internal-mount-point mount-point="%s" free-size="null" total-size="null"/>
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
""" % (hostname,hostname)
""" % (hostname,hostname,pwd,pwd,pwd,pwd)
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
34f5795fcb60d7590187acbce0f34abf68d1c803 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/34f5795fcb60d7590187acbce0f34abf68d1c803/pipeline.py
coincTrigs = CoincInspiralUtils.coincInspiralTable(inspTrigs,'snr')
statistic = CoincInspiralUtils.coincStatistic('snr',None,None) coincTrigs = CoincInspiralUtils.coincInspiralTable(inspTrigs,statistic)
def get_coincs_from_coire(self,files): """ uses CoincInspiralUtils to get data from old-style (coire'd) coincs """ #coincTrigs = CoincInspiralUtils.coincInspiralTable() inspTrigs = SnglInspiralUtils.ReadSnglInspiralFromFiles(files, \ mangle_event_id = True,verbose=None) #note that it's hardcoded to use snr as the stati...
74ab9a15843355a72cded211ab0cad56b42e32fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/74ab9a15843355a72cded211ab0cad56b42e32fe/skylocutils.py
num_days = int(round((duration)/86400))
num_days = int(round((int(duration))/86400))
def daily_ihope_cache(start,end,ifo,cluster=None): """ Generates cache list of daily ihope INSPIRAL xml files for give ifo and clustering (None,'30ms','100ms', or '16s') between start and end time """ #== daily path ihope_daily_path = '/archive/home/cbc/ihope_daily' #== set clustering tag if cluster==None or cluster....
3892bc7cf4bfa45ed90124ff636e9a2c3f0f3de8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3892bc7cf4bfa45ed90124ff636e9a2c3f0f3de8/dqDataUtils.py
xml = '<filename file="%s" />' % f
xml = '<filename file="%s" />' % os.path.basename(f)
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
cec1a043957f226949b65b3fd770ff7c197a21fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cec1a043957f226949b65b3fd770ff7c197a21fe/pipeline.py
hipeJob.set_pegasus_exec_dir(os.path.join( local_exec_dir, '/'.join(os.getcwd().split('/')[-2:])))
def test_and_add_hipe_arg(hipeCommand, hipe_arg): if config.has_option("hipe-arguments",hipe_arg): hipeCommand += "--" + hipe_arg + " " + \ config.get("hipe-arguments",hipe_arg) return(hipeCommand)
c507b56a4b5b1c9fc4213cf984ff021f8293a413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c507b56a4b5b1c9fc4213cf984ff021f8293a413/inspiralutils.py
hipeJob.set_pegasus_exec_dir(os.path.join( local_exec_dir, '/'.join(os.getcwd().split('/')[-2:]), usertag))
def test_and_add_hipe_arg(hipeCommand, hipe_arg): if config.has_option("hipe-arguments",hipe_arg): hipeCommand += "--" + hipe_arg + " " + \ config.get("hipe-arguments",hipe_arg) return(hipeCommand)
c507b56a4b5b1c9fc4213cf984ff021f8293a413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c507b56a4b5b1c9fc4213cf984ff021f8293a413/inspiralutils.py
plotcp.set("pipeline","bank-suffix",bankSuffix)
def plot_setup(plotDir, config, logPath, stage, injectionSuffix, zerolagSuffix, slideSuffix, bankSuffix, cacheFile, injdirType, tag = None, ifos = None, cat = 3): """ run lalapps_plot_hipe and add job to dag plotDir = directory in which to run inspiral hipe config = config file logPath = location where log files...
c507b56a4b5b1c9fc4213cf984ff021f8293a413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c507b56a4b5b1c9fc4213cf984ff021f8293a413/inspiralutils.py
['SUBDAG EXTERNAL', self.__name, self.__job.get_sub_file]) )
['SUBDAG EXTERNAL', self.__name, self.__job.get_sub_file()]) )
def write_job(self,fh): """ Write the DAG entry for this node's job to the DAG file descriptor. @param fh: descriptor of open DAG file. """ if isinstance(self.job(),CondorDAGManJob): # create an external subdag from this dag fh.write( ' '.join( ['SUBDAG EXTERNAL', self.__name, self.__job.get_sub_file]) ) if self.job()....
f1e1aa581a55110ef3b0e5694b5483479961d7dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f1e1aa581a55110ef3b0e5694b5483479961d7dd/pipeline.py
injected_cols.extend(['injected_end_time', 'injected_end_time_ns', 'injected_end_time_utc__Px_click_for_daily_ihope_xP_'])
injected_cols.extend(['injected_decisive_distance','injected_end_time', 'injected_end_time_ns', 'injected_end_time_utc__Px_click_for_daily_ihope_xP_'])
def convert_duration( duration ): return sqlutils.convert_duration( duration, convert_durations )
64ecc8995aa8c83d3ca0de584b8674ae4862a388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/64ecc8995aa8c83d3ca0de584b8674ae4862a388/printutils.py
from glue.lal import LIGOTimeGPS
def get_pyvalue(self): return generic_get_pyvalue(self)
64ecc8995aa8c83d3ca0de584b8674ae4862a388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/64ecc8995aa8c83d3ca0de584b8674ae4862a388/printutils.py
AND rank(""", decisive_distance, """) <= """, str(limit), """
%s""" % (limit is not None and ''.join(['AND rank(', decisive_distance, ') <= ', str(limit)]) or ''), """
def get_decisive_distance( *args ): return sorted(args)[1]
64ecc8995aa8c83d3ca0de584b8674ae4862a388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/64ecc8995aa8c83d3ca0de584b8674ae4862a388/printutils.py
y.segment_def_cdb = x.creator_db AND \ NOT (y.start_time > %s OR %s > y.end_time) ) \
y.segment_def_cdb = x.creator_db) AND \ NOT (segment.start_time > %s OR %s > segment.end_time) \ ORDER BY segment.start_time,segment_definer.segment_def_id,segment_definer.version \
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
81c52e948512e278b317a10e260fd6bef801d292 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/81c52e948512e278b317a10e260fd6bef801d292/fu_utils.py
def append_process(xmldoc, comment = None, force = None, e_thinca_parameter = None, effective_snr_factor = None, vetoes_name = None, trigger_program = None, effective_snr = None, verbose = None):
def append_process(xmldoc, comment = None, force = None, e_thinca_parameter = None, effective_snr_factor = None, vetoes_name = None, trigger_program = None, effective_snr = None, coinc_end_time_segment = None, verbose = None):
def append_process(xmldoc, comment = None, force = None, e_thinca_parameter = None, effective_snr_factor = None, vetoes_name = None, trigger_program = None, effective_snr = None, verbose = None): process = llwapp.append_process(xmldoc, program = process_program_name, version = __version__, cvs_repository = u"lscsoft", ...
cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555/ligolw_thinca.py
coinc_inspiral.set_end(events[0].get_end() + self.time_slide_index[time_slide_id][events[0].ifo])
coinc_inspiral.set_end(coinc_inspiral_end_time(events, self.time_slide_index[time_slide_id]))
def append_coinc(self, process_id, time_slide_id, coinc_def_id, events, effective_snr_factor): # # populate the coinc_event and coinc_event_map tables #
cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555/ligolw_thinca.py
ntuple_comparefunc = lambda events, offset_vector: False,
ntuple_comparefunc = default_ntuple_comparefunc,
def ligolw_thinca( xmldoc, process_id, EventListType, CoincTables, coinc_definer_row, event_comparefunc, thresholds, ntuple_comparefunc = lambda events, offset_vector: False, effective_snr_factor = 250.0, veto_segments = None, trigger_program = u"inspiral", verbose = False
cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555/ligolw_thinca.py
if cp.has_option('followup-plotmcmc','burnin'): burnin = string.strip(cp.get('followup-plotmcmc','burnin'))
if cp.has_option('fu-plotmcmc','burnin'): burnin = string.strip(cp.get('fu-plotmcmc','burnin'))
def __init__(self,job,coinc,cp,opts,dag,ifo,ifonames,p_nodes): pipeline.CondorDAGNode.__init__(self,job)
e22c0bde31b94a74f626c9cfe8a7419b4caedf75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e22c0bde31b94a74f626c9cfe8a7419b4caedf75/stfu_pipe.py
plot_routine = string.strip(cp.get('followup-plotmcmc','plot_routine')) executable = string.strip(cp.get('followup-plotmcmc','executable'))
plot_routine = string.strip(cp.get('fu-plotmcmc','plot_routine')) executable = string.strip(cp.get('fu-plotmcmc','executable'))
def __init__(self,job,coinc,cp,opts,dag,ifo,ifonames,p_nodes): pipeline.CondorDAGNode.__init__(self,job)
e22c0bde31b94a74f626c9cfe8a7419b4caedf75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e22c0bde31b94a74f626c9cfe8a7419b4caedf75/stfu_pipe.py
["src/xlal/date.c"],
["src/xlal/date.c", "src/xlal/misc.c"],
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
e0430ce899aa7d93f2182293eb13b32dc20f95e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e0430ce899aa7d93f2182293eb13b32dc20f95e7/setup.py
if injection:
if injection is not None and injectionconfidence is not None and injection_area is not None:
def cbcBayesPostProc(outdir,data,oneDMenu,twoDGreedyMenu,GreedyRes,confidence_levels,twoDplots,injfile=None,eventnum=None,skyres=None,bayesfactornoise=None,bayesfactorcoherent=None): """ This is a demonstration script for using the functionality/data structures contained in pylal.bayespputils . It will produce a webpag...
51d2c38e970b4864181924b277e03e4a61ab1379 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/51d2c38e970b4864181924b277e03e4a61ab1379/cbcBayesPostProc.py
parent.job().get_pegasus_exec_dir(), '00/P1/P1.cache') )
parent.job().get_pegasus_exec_dir(), dax_basename + '_0') )
def recurse_pfn_cache(node,caches=[]): for parent in node._CondorDAGNode__parents: if isinstance(parent.job(), CondorDAGManJob): if parent.job().get_dax() is None: pass else: caches = recurse_pfn_cache(parent,caches) caches.append( os.path.join( parent.job().get_pegasus_exec_dir(), '00/P1/P1.cache') ) return caches
0de62c767e28251d804835e34c315b4215ffe393 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0de62c767e28251d804835e34c315b4215ffe393/pipeline.py
return self.get_eff_dist() * (2.**(-1./5) * ref_mass / self.mchirp)**(5./6)
return self.get_eff_dist(instrument) * (2.**(-1./5) * ref_mass / self.mchirp)**(5./6)
def get_chirp_dist(self,instrument,ref_mass = 1.40): return self.get_eff_dist() * (2.**(-1./5) * ref_mass / self.mchirp)**(5./6)
0aecc08166130d9b6cf39d4bc37e435b7398edd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0aecc08166130d9b6cf39d4bc37e435b7398edd1/lsctables.py
self.add_var_opt("findVetoes",cp.get('findVetoes','blind'))
self.add_var_opt("blind",cp.get('findVetoes','blind'))
def __init__(self, dag, job, cp, opts, coincEvent=None): """ """ self.__conditionalLoadDefaults__(findVetosNode.defaults,cp) pipeline.CondorDAGNode.__init__(self,job) self.add_var_opt("trigger-time",coincEvent.time) #Output filename oFilename="%s-findVetos_%s_%s.wiki"%(coincEvent.instruments, coincEvent.ifos, coincEven...
1f5139f07df547b39f2c4a9b2e2fd53567379095 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1f5139f07df547b39f2c4a9b2e2fd53567379095/stfu_pipe.py
self.cp.set("fu-condor","qscan",home_dirs()+"/rgouaty/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline")
self.cp.set("fu-condor","qscan",stfu_pipe.home_dirs()+"/rgouaty/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline")
def set_qscan_executable(self): host = stfu_pipe.get_hostname() if 'phy.syr.edu' in host: self.cp.set("fu-condor","qscan",home_dirs()+"/rgouaty/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline") else: self.cp.set("fu-condor","qscan",home_dirs()+"/romain/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline")
dce13b8cc0e86447f38bb5cad7fb87def80618e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dce13b8cc0e86447f38bb5cad7fb87def80618e5/WOD_Bologna.py
self.cp.set("fu-condor","qscan",home_dirs()+"/romain/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline")
self.cp.set("fu-condor","qscan",stfu_pipe.home_dirs()+"/romain/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline") def get_cp(self): return self.cp def write(self): self.get_cp().write(open(self.ini_file,"w"))
def set_qscan_executable(self): host = stfu_pipe.get_hostname() if 'phy.syr.edu' in host: self.cp.set("fu-condor","qscan",home_dirs()+"/rgouaty/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline") else: self.cp.set("fu-condor","qscan",home_dirs()+"/romain/opt/omega/omega_r3270_glnxa64_binary/bin/wpipeline")
dce13b8cc0e86447f38bb5cad7fb87def80618e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dce13b8cc0e86447f38bb5cad7fb87def80618e5/WOD_Bologna.py
parser.add_option("-f", "--config-file", default="followup_pipe.ini", help="the config file, default looks for stfu_pipe.ini in path, if none is found it makes one from your environment (only provide a config file if you know you must override something)") parser.add_option("-g", "--gps-times", default='', help="Specif...
parser.add_option("-f", "--config-file", default="WOD_Bologna.ini", help="the config file, default looks for stfu_pipe.ini in path, if none is found it makes one from your environment (only provide a config file if you know you must override something)") parser.add_option("-g", "--gps-times", default='', help="Specify ...
def parse_command_line(): parser = OptionParser( version = "%prog", description = "Pipeline to setup Remote Wscans On Demand" ) parser.add_option("-v", "--verbose", action = "store_true", help = "Be verbose.") parser.add_option("-f", "--config-file", default="followup_pipe.ini", help="the config file, default looks for...
dce13b8cc0e86447f38bb5cad7fb87def80618e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dce13b8cc0e86447f38bb5cad7fb87def80618e5/WOD_Bologna.py
default_cp = stfu_pipe.create_default_config_wod(options.config_file)
default_cp = create_default_config_wod(options.config_file)
def parse_command_line(): parser = OptionParser( version = "%prog", description = "Pipeline to setup Remote Wscans On Demand" ) parser.add_option("-v", "--verbose", action = "store_true", help = "Be verbose.") parser.add_option("-f", "--config-file", default="followup_pipe.ini", help="the config file, default looks for...
dce13b8cc0e86447f38bb5cad7fb87def80618e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dce13b8cc0e86447f38bb5cad7fb87def80618e5/WOD_Bologna.py
gpsevents = time_only_events(options.gps_times)
if options.gps_times: gpsevents = time_only_events(options.gps_times) elif options.input_file: gpsevents = extractTimesFromFile(options.input_file) else: print >> sys.stderr, "an argument is missing in the command:\n You need to use one of the options --gps-times or --input-file" sys.exit(1)
def parse_command_line(): parser = OptionParser( version = "%prog", description = "Pipeline to setup Remote Wscans On Demand" ) parser.add_option("-v", "--verbose", action = "store_true", help = "Be verbose.") parser.add_option("-f", "--config-file", default="followup_pipe.ini", help="the config file, default looks for...
dce13b8cc0e86447f38bb5cad7fb87def80618e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dce13b8cc0e86447f38bb5cad7fb87def80618e5/WOD_Bologna.py
print >>sys.stderr, "following up %s @ %s" % (ifo, event.time)
print >>sys.stdout, "following up %s @ %s" % (ifo, event.time)
def parse_command_line(): parser = OptionParser( version = "%prog", description = "Pipeline to setup Remote Wscans On Demand" ) parser.add_option("-v", "--verbose", action = "store_true", help = "Be verbose.") parser.add_option("-f", "--config-file", default="followup_pipe.ini", help="the config file, default looks for...
dce13b8cc0e86447f38bb5cad7fb87def80618e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dce13b8cc0e86447f38bb5cad7fb87def80618e5/WOD_Bologna.py
ligolw += '"x\''
ligolw += '"'
def xml(self): """Convert a table dictionary to LIGO lightweight XML""" if len(self.table) == 0: raise LIGOLwDBError, 'attempt to convert empty table to xml' ligolw = """\
0a1bf8ad1efc042793c83c81328ffad32e9d7d64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0a1bf8ad1efc042793c83c81328ffad32e9d7d64/ldbd.py
ligolw += "%02x" % ord(ch) ligolw += '\'"'
ligolw += "%c" % ch ligolw += '"'
def xml(self): """Convert a table dictionary to LIGO lightweight XML""" if len(self.table) == 0: raise LIGOLwDBError, 'attempt to convert empty table to xml' ligolw = """\
0a1bf8ad1efc042793c83c81328ffad32e9d7d64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0a1bf8ad1efc042793c83c81328ffad32e9d7d64/ldbd.py
ligolw += '"'+self.strtoxml.xlat(str(tupi))+'"'
ligolw += '"'+self.strtoxml.xlat(string_format_func(tupi))+'"'
def xml(self): """Convert a table dictionary to LIGO lightweight XML""" if len(self.table) == 0: raise LIGOLwDBError, 'attempt to convert empty table to xml' ligolw = """\
0a1bf8ad1efc042793c83c81328ffad32e9d7d64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0a1bf8ad1efc042793c83c81328ffad32e9d7d64/ldbd.py
df = float((event1.central_freq + 0.5*event1.bandwidth - event2.central_freq - 0.5*event2.bandwidth)/(event1.central_freq + 0.5*event1.bandwidth + event2.central_freq + 0.5*event2.bandwidth))
f_cut1 = event1.central_freq + event1.bandwidth / 2 f_cut2 = event2.central_freq + event2.bandwidth / 2 df = float((f_cut1 - f_cut2) / (f_cut1 + f_cut2))
def coinc_params_func(events, offsetvector): # # check for coincs that have been vetoed entirely # if len(events) < 2: return None params = {} # # zero-instrument parameters # params["nevents"] = (len(events),) # # one-instrument parameters # for event in events: prefix = "%s_" % event.ifo params["%ssnr2_chi2" %...
5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py
"nevents": rate.tophat_window(1)
"nevents": rate.tophat_window(1)
def dt_binning(instrument1, instrument2): dt = 0.005 + inject.light_travel_time(instrument1, instrument2) # seconds return rate.NDBins((rate.ATanBins(-dt, +dt, 3001),))
5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py
def get_coincparamsdistributions(xmldoc):
def get_coincparamsdistributions(xmldoc, seglists = None):
def get_coincparamsdistributions(xmldoc): coincparamsdistributions, process_id = ligolw_burca_tailor.coinc_params_distributions_from_xml(xmldoc, u"string_cusp_likelihood") return coincparamsdistributions
5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py
def load_likelihood_data(filenames, verbose = False):
def load_likelihood_data(filenames, seglists = None, verbose = False):
def load_likelihood_data(filenames, verbose = False): coincparamsdistributions = None for n, filename in enumerate(filenames): if verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = utils.load_filename(filename, gz = (filename or "stdin").endswith(".gz"), verbose = verbose) if coincparamsdistribut...
5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py
coincparamsdistributions = get_coincparamsdistributions(xmldoc)
coincparamsdistributions = get_coincparamsdistributions(xmldoc, seglists = seglists)
def load_likelihood_data(filenames, verbose = False): coincparamsdistributions = None for n, filename in enumerate(filenames): if verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = utils.load_filename(filename, gz = (filename or "stdin").endswith(".gz"), verbose = verbose) if coincparamsdistribut...
5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py
coincparamsdistributions += get_coincparamsdistributions(xmldoc)
coincparamsdistributions += get_coincparamsdistributions(xmldoc, seglists = seglists)
def load_likelihood_data(filenames, verbose = False): coincparamsdistributions = None for n, filename in enumerate(filenames): if verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = utils.load_filename(filename, gz = (filename or "stdin").endswith(".gz"), verbose = verbose) if coincparamsdistribut...
5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py
def __init__(self, config=None):
def __init__(self, configfile=None):
def __init__(self, config=None): cp = ConfigParser.ConfigParser() self.cp = cp self.time_now = "_".join([str(i) for i in time_method.gmtime()[0:6]]) self.ini_file=self.time_now + ".ini" home_base = home_dirs() # CONDOR SECTION NEEDED BY THINGS IN INSPIRAL.PY cp.add_section("condor") cp.set("condor","datafind",self.whi...
fe67d28c671b82eaa467247c03aace975539aa65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fe67d28c671b82eaa467247c03aace975539aa65/stfu_pipe.py
cp.set("condor","chia", self.which("lalapps_coherent_inspiral"))
cp.set("condor","chia", self.which("lalapps_coherent_inspiral"))
def __init__(self, config=None): cp = ConfigParser.ConfigParser() self.cp = cp self.time_now = "_".join([str(i) for i in time_method.gmtime()[0:6]]) self.ini_file=self.time_now + ".ini" home_base = home_dirs() # CONDOR SECTION NEEDED BY THINGS IN INSPIRAL.PY cp.add_section("condor") cp.set("condor","datafind",self.whi...
fe67d28c671b82eaa467247c03aace975539aa65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fe67d28c671b82eaa467247c03aace975539aa65/stfu_pipe.py
if config:
if configfile:
def __init__(self, config=None): cp = ConfigParser.ConfigParser() self.cp = cp self.time_now = "_".join([str(i) for i in time_method.gmtime()[0:6]]) self.ini_file=self.time_now + ".ini" home_base = home_dirs() # CONDOR SECTION NEEDED BY THINGS IN INSPIRAL.PY cp.add_section("condor") cp.set("condor","datafind",self.whi...
fe67d28c671b82eaa467247c03aace975539aa65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fe67d28c671b82eaa467247c03aace975539aa65/stfu_pipe.py
user_cp.read(config)
user_cp.read(configfile)
def __init__(self, config=None): cp = ConfigParser.ConfigParser() self.cp = cp self.time_now = "_".join([str(i) for i in time_method.gmtime()[0:6]]) self.ini_file=self.time_now + ".ini" home_base = home_dirs() # CONDOR SECTION NEEDED BY THINGS IN INSPIRAL.PY cp.add_section("condor") cp.set("condor","datafind",self.whi...
fe67d28c671b82eaa467247c03aace975539aa65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fe67d28c671b82eaa467247c03aace975539aa65/stfu_pipe.py
if user_cp: self.overwrite_config(user_cp)
if user_cp: self.overwrite_config(user_cp,cp)
def __init__(self, config=None): cp = ConfigParser.ConfigParser() self.cp = cp self.time_now = "_".join([str(i) for i in time_method.gmtime()[0:6]]) self.ini_file=self.time_now + ".ini" home_base = home_dirs() # CONDOR SECTION NEEDED BY THINGS IN INSPIRAL.PY cp.add_section("condor") cp.set("condor","datafind",self.whi...
fe67d28c671b82eaa467247c03aace975539aa65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fe67d28c671b82eaa467247c03aace975539aa65/stfu_pipe.py
def overwrite_config(self,config):
def overwrite_config(self,config,cp):
def overwrite_config(self,config): for section in config.sections(): if not cp.has_section(section): cp.add_section(section) for option in config.options(section): cp.set(section,option,config.get(section,option))
fe67d28c671b82eaa467247c03aace975539aa65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fe67d28c671b82eaa467247c03aace975539aa65/stfu_pipe.py
parent.job().get_pegasus_exec_dir(), dax_basename + '_0') )
parent.job().get_pegasus_exec_dir(), dax_basename + '_0.cache') )
def recurse_pfn_cache(node,caches=[]): for parent in node._CondorDAGNode__parents: if isinstance(parent.job(), CondorDAGManJob): if parent.job().get_dax() is None: pass else: caches = recurse_pfn_cache(parent,caches) dax_name = os.path.basename(parent.job().get_dax()) dax_basename = '.'.join(dax_name.split('.')[0:-1]) ...
444df41c387b572f8d1af98af9fe7770169ad36d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/444df41c387b572f8d1af98af9fe7770169ad36d/pipeline.py
if code>0:
if code>0 and len(err)>0:
def system_call(item, command, divert_output_to_log = True): """ Makes a system call. @params item: a text specifying the content of the text (e.g. number of the GRB the message is associated with) (see also 'info') @params command: the command to be executed on the bash @params divert_output_to_log: If this flag is se...
95499224566e9b069470bbc218a52002020d0f64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/95499224566e9b069470bbc218a52002020d0f64/pylal_exttrig_llutils.py
output, error = internal_call(cmdtmp)
code, output, error = external_call(cmdtmp)
def make_cvs_copy(self, files, dest_dir): """ Copies all the files given in the list 'files' to dest_dir and creates a file 'cvs_versions.txt' in dest_dir containing the actual CVS version of the files @param files: list of files to be copied from self.input_dir @param dest_dir: destination directory """
95499224566e9b069470bbc218a52002020d0f64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/95499224566e9b069470bbc218a52002020d0f64/pylal_exttrig_llutils.py
coincTrigs = CoincInspiralUtils.coincInspiralTable(inspTriggers,'snr')
coincTrigs = CoincInspiralUtils.coincInspiralTable(inspTrigs,'snr')
def get_coincs_from_coire(self,files): """ uses CoincInspiralUtils to get data from old-style (coire'd) coincs """ coincTrigs = CoincInspiralUtils.coincInspiralTable() inspTrigs = SnglInspiralUtils.ReadSnglInspiralFromFiles(files, \ mangle_event_id = True,verbose=None) #note that it's hardcoded to use snr as the statis...
e5ae69c744042b915e1b487e90286834eb35a53c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e5ae69c744042b915e1b487e90286834eb35a53c/skylocutils.py
injection_area=bin_size*i
injection_area=bin_size*(i+1)
def _greedy_bin(greedyHist,greedyPoints,injection_bin_index,bin_size,Nsamples,confidence_levels): """ An interal function representing the common, dimensionally-independent part of the greedy binning algorithms. """ #Now call confidence level C extension function to determine top-ranked pixels (injectionconfidence,top...
a13e17ac84786e99a6ea7129f877320fbee2a115 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a13e17ac84786e99a6ea7129f877320fbee2a115/bayespputils.py
def set_glob(self, file_glob): """ Sets the glob name """ self.add_var_opt('glob',file_glob) def set_input(self, input_file): """ Sets the input file name """ self.add_var_opt('input',input_file)
def get_ifo_tag(self): """ Returns the IFO tag string """ return self.__ifo_tag
3e68beb8ab8c781f241f889655a1038c100354fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3e68beb8ab8c781f241f889655a1038c100354fd/inspiral.py
myAngle=arcsin(dY/dX)
myAngle=arctan(dY/dX)
def scatterPointer(A=None,B=None): """ Expects two ordered pairs as tuples (x1,y1) and (x2,y2)... Then this defines an angle. From this angle we orient a triangle point and return this as a tuple of requested size. This can be plotted by the scatter plot to point in a particular orientation. The direction right(0,0)->...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
myAngle=pi-arcsin(dY/dX)
myAngle=pi-arctan(dY/dX)
def scatterPointer(A=None,B=None): """ Expects two ordered pairs as tuples (x1,y1) and (x2,y2)... Then this defines an angle. From this angle we orient a triangle point and return this as a tuple of requested size. This can be plotted by the scatter plot to point in a particular orientation. The direction right(0,0)->...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
myAngle=arcsin(dY/dX)+pi
myAngle=arctan(dY/dX)+pi
def scatterPointer(A=None,B=None): """ Expects two ordered pairs as tuples (x1,y1) and (x2,y2)... Then this defines an angle. From this angle we orient a triangle point and return this as a tuple of requested size. This can be plotted by the scatter plot to point in a particular orientation. The direction right(0,0)->...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
myAngle=(2.0*pi)-arcsin(dY/dX)
myAngle=(2.0*pi)-arctan(dY/dX)
def scatterPointer(A=None,B=None): """ Expects two ordered pairs as tuples (x1,y1) and (x2,y2)... Then this defines an angle. From this angle we orient a triangle point and return this as a tuple of requested size. This can be plotted by the scatter plot to point in a particular orientation. The direction right(0,0)->...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
type="string",default=None,\
type="string",default="dummy",\
def convert2DHistTo3ColVectors(myMatrix,xBins=None,yBins=None): """ Create three vectors X,Y,Z for ease of use in functs like contour, and scatter instead of imshow! If [x,y]Bins==None use bin index for X, Y Input matrix assumed square!! """ if xBins==None: xBins=range(len(myMatrix)) if yBins==None: yBins=range(len(myM...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
origData=dict() origData["beam"]=beamSpigot.getDataStream(beamName,gpsStart,gpsEnd)
origData=dict()
def convert2DHistTo3ColVectors(myMatrix,xBins=None,yBins=None): """ Create three vectors X,Y,Z for ease of use in functs like contour, and scatter instead of imshow! If [x,y]Bins==None use bin index for X, Y Input matrix assumed square!! """ if xBins==None: xBins=range(len(myMatrix)) if yBins==None: yBins=range(len(myM...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
tmpData=beamSpigot.getDataStream(myLabel[myKey],gpsA,gpsB) mySnipData[myKey]=interp(mySnipData["time"], getTimeStamps(tmpData), tmpData)
if beamName == "dummy" and myKey == "beam": mySnipData[myKey]=ones(size(mySnipData["time"])) else: tmpData=beamSpigot.getDataStream(myLabel[myKey],gpsA,gpsB) mySnipData[myKey]=interp(mySnipData["time"], getTimeStamps(tmpData), tmpData)
def convert2DHistTo3ColVectors(myMatrix,xBins=None,yBins=None): """ Create three vectors X,Y,Z for ease of use in functs like contour, and scatter instead of imshow! If [x,y]Bins==None use bin index for X, Y Input matrix assumed square!! """ if xBins==None: xBins=range(len(myMatrix)) if yBins==None: yBins=range(len(myM...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
size=50,color='white')
size=starSize,color='white')
def convert2DHistTo3ColVectors(myMatrix,xBins=None,yBins=None): """ Create three vectors X,Y,Z for ease of use in functs like contour, and scatter instead of imshow! If [x,y]Bins==None use bin index for X, Y Input matrix assumed square!! """ if xBins==None: xBins=range(len(myMatrix)) if yBins==None: yBins=range(len(myM...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
size=50,color='white')
size=starSize,color='white')
def convert2DHistTo3ColVectors(myMatrix,xBins=None,yBins=None): """ Create three vectors X,Y,Z for ease of use in functs like contour, and scatter instead of imshow! If [x,y]Bins==None use bin index for X, Y Input matrix assumed square!! """ if xBins==None: xBins=range(len(myMatrix)) if yBins==None: yBins=range(len(myM...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
facecolor=None,\
def convert2DHistTo3ColVectors(myMatrix,xBins=None,yBins=None): """ Create three vectors X,Y,Z for ease of use in functs like contour, and scatter instead of imshow! If [x,y]Bins==None use bin index for X, Y Input matrix assumed square!! """ if xBins==None: xBins=range(len(myMatrix)) if yBins==None: yBins=range(len(myM...
85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py
self.daq = nds.daq(self.host, self.port)
self.daq = nds.daq(host, port)
def __init__(self, host, port): self.daq = nds.daq(self.host, self.port) self.channels = self.daq.recv_channel_list() self.channelLeaves, self.channelTree = make_channel_tree(self.channels) self.rates = tuple(sorted(set(int(c.rate) for c in self.channels))) self.channel_types = tuple(c for c in nds.channel_type.values....
77730307054d2184fca65b719e2f077650cb3c6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/77730307054d2184fca65b719e2f077650cb3c6c/channel_browser.py
fd, filename = tempfile.mkstemp(suffix = ".sqlite", dir = path) os.close(fd)
temporary_file = tempfile.NamedTemporaryFile(suffix = ".sqlite", dir = path) def new_unlink(self, orig_unlink = temporary_file.unlink): try: orig_unlink("%s-journal" % self) except: pass orig_unlink(self) temporary_file.unlink = new_unlink filename = temporary_file.name temporary_files[filename] = temporary_file
def mktmp(path, verbose = False): fd, filename = tempfile.mkstemp(suffix = ".sqlite", dir = path) os.close(fd) if verbose: print >>sys.stderr, "using '%s' as workspace" % filename # mkstemp() ignores umask, creates all files accessible # only by owner; we should respect umask. note that # os.umask() sets it, too, so ...
494d717ccc5a701b4f41290104b6e60458650beb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/494d717ccc5a701b4f41290104b6e60458650beb/dbtables.py
os.remove(working_filename)
del temporary_files[working_filename]
def discard_connection_filename(filename, working_filename, verbose = False): """ Like put_connection_filename(), but the working copy is simply deleted instead of being copied back to its original location. This is a useful performance boost if it is known that no modifications were made to the file, for example if qu...
494d717ccc5a701b4f41290104b6e60458650beb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/494d717ccc5a701b4f41290104b6e60458650beb/dbtables.py
maxbin=0
def getinjpar(inj,parnum): if parnum==0: return inj.mchirp if parnum==1: return inj.eta if parnum==2: return inj.get_end() if parnum==3: return inj.phi0 if parnum==4: return inj.distance if parnum==5: return inj.longitude if parnum==6: return inj.latitude if parnum==7: return inj.polarization if parnum==8: return inj.i...
33519ea48f8ccd5716372f3219410b44ab5f50ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/33519ea48f8ccd5716372f3219410b44ab5f50ca/OddsPostProc.py
hist[maxbin]=0 frac=frac+(maxbin/len(pos))
hist[maxpos]=0 frac=frac+(float(maxbin)/float(len(pos)))
def getinjpar(inj,parnum): if parnum==0: return inj.mchirp if parnum==1: return inj.eta if parnum==2: return inj.get_end() if parnum==3: return inj.phi0 if parnum==4: return inj.distance if parnum==5: return inj.longitude if parnum==6: return inj.latitude if parnum==7: return inj.polarization if parnum==8: return inj.i...
33519ea48f8ccd5716372f3219410b44ab5f50ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/33519ea48f8ccd5716372f3219410b44ab5f50ca/OddsPostProc.py