rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
(home_dirs()+"/romain/followupbackgrounds/omega/VSR1b/background/background_937800015_947260815.cache",935798415,999999999,"V1")
(home_dirs()+"/romain/followupbackgrounds/omega/VSR2b/background/background_937800015_947260815.cache",935798415,999999999,"V1")
def figure_out_cache(time,ifo): cacheList=( (home_dirs()+"/romain/followupbackgrounds/omega/S5/background/background_815155213_875232014.cache",815155213,875232014,"H1H2L1"), (home_dirs()+"/romain/followupbackgrounds/omega/S6a/background/background_931035296_935798415.cache",931035296,935798415,"H1L1"), (home_dirs()+"...
b726adecb7be59dfbc873941cdbe5900132f4046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/b726adecb7be59dfbc873941cdbe5900132f4046/stfu_pipe.py
self.offset_vectors = offset_vectors
self.offset_vectors = list(offset_vectors) self.offset_vectors.sort(key = lambda offset_vector: sorted(offset_vector.items()))
def set_offset_vectors(self, offset_vectors): """ Set the list of offset vectors to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. """ self.offset_vectors = offset_vectors min_offset = ...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
def set_offset_vectors(self, offset_vectors): """ Set the list of offset vectors to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. """ self.offset_vectors = offset_vectors min_offset = ...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """
def split_bins(cafepacker, extentlimit, verbose = False): """ Split bins in CafePacker so that each bin has an extent no longer than extentlimit. """
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
if abs(cafepacker.bins[idx].extent) <= extentlimit:
origbin = cafepacker.bins[idx] n = int(math.ceil(float(abs(origbin.extent)) / extentlimit)) if n <= 1:
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
bigbin = cafepacker.bins.pop(idx) splittime = lsctables.LIGOTimeGPS(bigbin.extent[0] + (bigbin.extent[1] - bigbin.extent[0])/2) splitseglistdict = segments.segmentlistdict() for key in bigbin.size.keys(): splitseglistdict[key] = segments.segmentlist([segments.segment(-segments.infinity(),splittime)]) ...
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()] if verbose: print >>sys.stderr, "\tsplitting cache spanning %s at %s" % (str(origbin.extent), ", ".join(str(split) for split in splits[1:-...
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
bin1.size.offsets.update(offset_vector) bin2.size.offsets.update(offset_vector) thisseglistdict.offsets.update(offset_vector) if not coinc1 and bin1.size.is_coincident(thisseglistdict, keys = offset_vector.keys()):
if cache_entry.segment.protract(cafepacker.max_gap).disjoint(bin.extent): continue cache_entry_segs = cache_entry.to_segmentlistdict() for offset_vector in cafepacker.offset_vectors: cache_entry_segs.offsets.update(offset_vector)
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
coinc1 = 1 bin1.objects.append(cache) if not coinc2 and bin2.size.is_coincident(thisseglistdict, keys = offset_vector.keys()): coinc2 = 1 bin2.objects.append(cache) if coinc1 and coinc2: break thisseglistdict.offsets.clear() bin1.size.offsets.clear() bin2.size.offsets.clear() cafepacker.bins.ap...
if cache_entry_segs.intersects_segment(bin.extent): bin.objects.append(cache_entry) break cafepacker.bins[idx:idx+1] = newbins idx += len(newbins)
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
pattern = "%%s%%0%dd.cache" % int(log10(len(bins)) + 1)
pattern = "%%s%%0%dd.cache" % int(math.log10(len(bins)) + 1)
def write_caches(base, bins, instruments, verbose = False): filenames = [] if len(bins): pattern = "%%s%%0%dd.cache" % int(log10(len(bins)) + 1) for n, bin in enumerate(bins): filename = pattern % (base, n) filenames.append(filename) if verbose: print >>sys.stderr, "writing %s ..." % filename f = file(filename, "w") fo...
d665ff5b1086411540dd407fbadfcc4d28eb43e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d665ff5b1086411540dd407fbadfcc4d28eb43e6/ligolw_cafe.py
html_filename = prefix + opts.suffix +".html"
html_filename = prefix + opts.suffix +".html"
def write_html_output(opts, args, fnameList, tagLists, \ doThumb=True, mapList = [],\ comment=None, CoincSummTable=None,\ html_tag = '', add_box_flag=False): """ @param opts: The options from the calling code @param args: The args from the calling code @param fnameList: A list of the filenames @param tagLists: A list f...
fa6ee53541fd0c20802a47ce5fd5ed270fff5deb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fa6ee53541fd0c20802a47ce5fd5ed270fff5deb/InspiralUtils.py
qscanList = stfu_pipe.getParamsFromCache(eval("opts.qscan_cache_" + type_string),type)
qscanList = getParamsFromCache(eval("opts.qscan_cache_" + type_string),type)
def getQscanTable(opts,type): summary = readSummaryFiles() if "FG" in type: type_string = "foreground" elif "BG" in type: type_string = "background" if eval("opts.qscan_cache_" + type_string): qscanList = stfu_pipe.getParamsFromCache(eval("opts.qscan_cache_" + type_string),type) else: try: inputPath = eval("opts." +...
42c544601128c09e8288999f42f6491129a468cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/42c544601128c09e8288999f42f6491129a468cb/analyseQscan.py
candidates_path = stfu_pipe.getParamsFromCache(opts.qscan_cache_foreground,type,ifo,time_string)
candidates_path = getParamsFromCache(opts.qscan_cache_foreground,type,ifo,time_string)
def plotHistogram(chan,opts,distribution,histoList,binList,percentiles=None,candidate=None,candidateRank=None): parameter = distribution.split('-')[0] step = binList[1] - binList[0] counter = sum(histoList) xlimInf = min(binList) if candidate and not parameter == 'dt': xlimSup = max(max(binList),candidate + 2.0) els...
42c544601128c09e8288999f42f6491129a468cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/42c544601128c09e8288999f42f6491129a468cb/analyseQscan.py
filename = "%s-STRING_LIKELIHOOD_%s-%d-%d.xml.gz" % (cache_entry.observatory, cache_entry.description, int(cache_entry.segment[0]), int(abs(cache_entry.segment)))
filename = os.path.join(self.output_dir, "%s-STRING_LIKELIHOOD_%s-%d-%d.xml.gz" % (cache_entry.observatory, cache_entry.description, int(cache_entry.segment[0]), int(abs(cache_entry.segment))))
def set_output(self, description): if self.output_cache: raise AttributeError, "cannot change attributes after computing output cache" cache_entry = power.make_cache_entry(self.input_cache, description, "") filename = "%s-STRING_LIKELIHOOD_%s-%d-%d.xml.gz" % (cache_entry.observatory, cache_entry.description, int(cache_...
7a4f024f8dc816ab58a8babf63ba6bf956b5262e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7a4f024f8dc816ab58a8babf63ba6bf956b5262e/cosmicstring.py
self.triggers_dir = power.get_triggers_dir(config_parser)
self.output_dir = power.get_triggers_dir(config_parser)
def __init__(self,config_parser): """ config_parser = ConfigParser object from which options are read. """ pipeline.CondorDAGJob.__init__(self, power.get_universe(config_parser), power.get_executable(config_parser, "lalapps_StringSearch")) pipeline.AnalysisJob.__init__(self, config_parser) self.add_ini_opts(config_pars...
7a4f024f8dc816ab58a8babf63ba6bf956b5262e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7a4f024f8dc816ab58a8babf63ba6bf956b5262e/cosmicstring.py
self.triggers_dir = self.job().triggers_dir
self.output_dir = os.path.join(os.getcwd(), self.job().output_dir)
def __init__(self,job): """ job = A CondorDAGJob that can run an instance of lalapps_StringSearch. """ pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self) self.__usertag = job.get_config('pipeline','user_tag') self.output_cache = [] self.triggers_dir = self.job().triggers_dir
7a4f024f8dc816ab58a8babf63ba6bf956b5262e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7a4f024f8dc816ab58a8babf63ba6bf956b5262e/cosmicstring.py
self.set_output(os.path.join(self.triggers_dir, "%s-STRINGSEARCH_%s-%d-%d.xml.gz" % (self.get_ifo(), self.__usertag, int(self.get_start()), int(self.get_end()) - int(self.get_start()))))
self.set_output(os.path.join(self.output_dir, "%s-STRINGSEARCH_%s-%d-%d.xml.gz" % (self.get_ifo(), self.__usertag, int(self.get_start()), int(self.get_end()) - int(self.get_start()))))
def get_output(self): """ Returns the file name of output from the ring code. This must be kept synchronized with the name of the output file in ring.c. """ if self._AnalysisNode__output is None: if None in (self.get_start(), self.get_end(), self.get_ifo(), self.__usertag): raise ValueError, "start time, end time, ifo,...
7a4f024f8dc816ab58a8babf63ba6bf956b5262e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7a4f024f8dc816ab58a8babf63ba6bf956b5262e/cosmicstring.py
self.coincs = [tuple(event.event_id for event in sorted(double, lambda a, b: cmp(a.ifo, b.ifo))) for double in CoincidentNTuples(eventlists, event_comparefunc, offset_instruments, thresholds, verbose = verbose)] self.coincs.sort()
self.coincs = sorted(tuple(event.event_id for event in sorted(double, lambda a, b: cmp(a.ifo, b.ifo))) for double in CoincidentNTuples(eventlists, event_comparefunc, offset_instruments, thresholds, verbose = verbose))
def get_coincs(self, eventlists, event_comparefunc, thresholds, verbose = False): # # has this node already been visited? if so, return the # answer we already know #
da3b5dcf0ac7a0a533ee6fcab63714a7944dfe42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/da3b5dcf0ac7a0a533ee6fcab63714a7944dfe42/snglcoinc.py
self.unused_coincs = reduce(lambda a, b: a & b, (component.unused_coincs for component in self.components)) | reduce(lambda a, b: a | b, (set(component.coincs) for component in self.components))
self.unused_coincs = reduce(lambda a, b: a | b, (set(component.get_coincs(eventlists, event_comparefunc, thresholds, verbose = verbose)) for component in self.components)) self.unused_coincs |= reduce(lambda a, b: a & b, (component.unused_coincs for component in self.components))
def get_coincs(self, eventlists, event_comparefunc, thresholds, verbose = False): # # has this node already been visited? if so, return the # answer we already know #
da3b5dcf0ac7a0a533ee6fcab63714a7944dfe42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/da3b5dcf0ac7a0a533ee6fcab63714a7944dfe42/snglcoinc.py
raise GitInvocationError, 'failed to run "%s"' % command
raise GitInvocationError, 'failed to run "%s"' % " ".join(command)
def check_call_out(command): """ Run the given command (with shell=False) and return the output as a string. Strip the output of enclosing whitespace. If the return code is non-zero, throw GitInvocationError. """ # start external command process p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PI...
a2bba870c57a91341f69046ff001819aca781dd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a2bba870c57a91341f69046ff001819aca781dd8/determine_git_version.py
raise ValueError r'param-name cannot have "\n","\t", "DROP", or "DELETE" in it'
raise ValueError, r'param-name cannot have "\n","\t", "DROP", or "DELETE" in it'
def __init__( self, table_name, table_param, param_ranges_opt, verbose = False ): """ Parse --param-ranges option. Creates self.param which is the table_name and the table_param appended together (with a '.') and self.param_ranges, which is a list of tuples that give the lower parameter value, whether it is an open or ...
db054ba913f1595e68475e1eccc579881eedb7e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/db054ba913f1595e68475e1eccc579881eedb7e8/ligolw_sqlutils.py
hwInjNode.set_output_file(os.path.join(hw_inj_dir, outfilename))
hwInjNode.set_output_file(outfilename)
def hwinj_page_setup(cp,ifos,veto_categories,hw_inj_dir): """ run ligolw_cbc_hardware injection page, soring the input and output in the subdirectory hardware_injection_summary """ hwInjNodes = [] hwinj_length = cp.getint("input","gps-end-time") - cp.getint("input","gps-start-time") hwInjJob = inspiral.HWinjPageJob(cp...
7c958f7f3caa1fa4c2fb0a978e2c88fd0201960c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7c958f7f3caa1fa4c2fb0a978e2c88fd0201960c/inspiralutils.py
def get_lock(lockfile): """ Tries to write a lockfile containing the current pid. Excepts if the lockfile already contains the pid of a running process. Although this should prevent a lock from being granted twice, it can theoretically deny a lock unjustly in the unlikely event that the original process is gone but a...
92643f48d0ca124ff21dcb6607a2650036792d4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/92643f48d0ca124ff21dcb6607a2650036792d4e/pidfile.py
if pidfile_pid.isdigit() and glue.utils.pid_exists(int(pidfile_pid)): raise RuntimeError, ("pidfile %s contains pid (%s) of a running " "process" % (lockfile, pidfile_pid)) else: print ("pidfile %s contains stale pid %s; writing new lock" % (lockfile, pidfile_pid))
if pidfile_pid.isdigit(): if glue.utils.pid_exists(int(pidfile_pid)): raise RuntimeError, ("pidfile %s contains pid (%s) of a running " "process" % (lockfile, pidfile_pid)) else: print ("pidfile %s contains stale pid %s; writing new lock" % (lockfile, pidfile_pid))
def get_lock(lockfile): """ Tries to write a lockfile containing the current pid. Excepts if the lockfile already contains the pid of a running process. Although this should prevent a lock from being granted twice, it can theoretically deny a lock unjustly in the unlikely event that the original process is gone but a...
92643f48d0ca124ff21dcb6607a2650036792d4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/92643f48d0ca124ff21dcb6607a2650036792d4e/pidfile.py
os.path.join("bin", "search_upper_limit_by_s1_s2"),
os.path.join("bin", "search_upper_limit_by_s1z_s2z"), os.path.join("bin", "search_volume_by_s1z_s2z"),
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
e4ec28f741e70913dea624c706c78235785d2e96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e4ec28f741e70913dea624c706c78235785d2e96/setup.py
plot(getinjpar(injection,0),getinjpar(injection,1),'go',scalex=False,scaley=False)
plot([getinjpar(injection,0)],[getinjpar(injection,1)],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
plot(getinjpar(injection,5),getinjpar(injection,6),'go',scalex=False,scaley=False)
print 'getinjpar(5),getinjpar(6) = %f,%f\n'%(getinjpar(injection,5),getinjpar(injection,6)) plot([getinjpar(injection,5)],[getinjpar(injection,6)],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
if injection and getinjpar(injection,7)<max(pos[:,7]) and getinjpar(injection,7)>min(pos[:,7]) and getinjpar(injection,8)<max(pos[:,8]) and getinjpar(injection,8)>min(pos[:,8]): plot(getinjpar(injection,7),getinjpar(injection,8),'go',scalex=False,scaley=False)
if injection and getinjpar(injection,7)<max(pos[:,7]) and getinjpar(injection,7)>min(pos[:,7]) and getinjpar(injection,8)<max(pos[:,8]) and getinjpar(injection,8)>min(pos[:,8]): plot([getinjpar(injection,7)],[getinjpar(injection,8)],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
plot(injection.mass1,injection.mass2,'go',scalex=False,scaley=False)
plot([injection.mass1],[injection.mass2],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
plot(injection.mass1,injection.distance,'go',scalex=False,scaley=False)
plot([injection.mass1],[injection.distance],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
plot(getinjpar(injection,4),getinjpar(injection,8),'go',scalex=False,scaley=False)
plot([getinjpar(injection,4)],[getinjpar(injection,8)],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
plot(getinjpar(injection,i),getinjpar(injection,j),'go',scalex=False,scaley=False)
plot([getinjpar(injection,i)],[getinjpar(injection,j)],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') htmlfile.write('<td width=30%><img width=100% src="m2dist.png"></td>')
if opts.skyres is not None: htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') else: htmlfile.write('<td width=30%><img width=100% src="psiiota.png"></td>') htmlfile.write('<td width=30%><img width=100% src="Diota.png"></td>')
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
gkde=stats.gaussian_kde(pos[:,i]) ind=linspace(min(pos[:,i]),max(pos[:,i]),101) kdepdf=gkde.evaluate(ind) plot(ind,kdepdf,label='density estimate')
if size(unique(pos[:,i]))>1: gkde=stats.gaussian_kde(pos[:,i]) ind=linspace(min(pos[:,i]),max(pos[:,i]),101) kdepdf=gkde.evaluate(ind) plot(ind,kdepdf,label='density estimate')
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
shiftString=shift
shiftString=shiftLabel[shift]
def getFOMLinks(gpsTime=int(0),ifo=("default")): """ Simple method returns a list of links to FOMs ordered by FOM # The list is 2D ie: [['ifo,shift',LINKtoImage,LinktoThumb],['ifo,shift',LinktoImage,LinkToThumb]...] images marked [Eve,Owl,Day] via [p3,p2,p1] in filenames this methd only for S6 and later IFO naming star...
ec919a691dca5cdb69170a2ea0a8c295483bfc2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ec919a691dca5cdb69170a2ea0a8c295483bfc2f/stfu_pipe.py
def update_ids(xmldoc, connection, verbose = False): """ For internal use only. """ table_elems = xmldoc.getElementsByTagName(ligolw.Table.tagName) for i, tbl in enumerate(table_elems): if verbose: print >>sys.stderr, "updating IDs: %d%%\r" % (100 * i / len(table_elems)), tbl.applyKeyMapping() if verbose: print >>sys.s...
acb14f4da9f7d6adcfd5633d711e4650897950a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/acb14f4da9f7d6adcfd5633d711e4650897950a7/ligolw_sqlite.py
self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err')
self.set_stderr_file('logs/' + exec_name + '-$(cluster)-$(process).err')
def __init__(self, cp, dax = False): """ cp: ConfigParser object from which options are read. """ exec_name = "mvsc_get_doubles" universe = "vanilla" executable = cp.get('condor',exec_name) pipeline.CondorDAGJob.__init__(self, universe, executable) pipeline.AnalysisJob.__init__(self, cp, dax) self.add_condor_cmd('geten...
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
for i in range(number):
for i in range(self.number):
def finalize(self): """ finalize the mvsc_get_doubles node """ self.add_var_opt("instruments", self.instruments) self.add_var_opt("trainingstr", self.trainingstr) self.add_var_opt("testingstr", self.testingstr) self.add_var_opt("zerolagstr", self.zerolagstr) for database in self.databases: self.add_file_arg(database) i...
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err')
self.set_stderr_file('logs/' + exec_name + '-$(cluster)-$(process).err')
def __init__(self, cp, dax = False): """ cp: ConfigParser object from which options are read. """ exec_name = "mvsc_train_forest" universe = "vanilla" executable = cp.get('condor',exec_name) pipeline.CondorDAGJob.__init__(self, universe, executable) pipeline.AnalysisJob.__init__(self, cp, dax) self.add_condor_cmd('gete...
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
""" trainingfile: take a single file to train with """ self.trainingfile = trainingfile self.add_input_file(self.trainingfile)
""" trainingfile: take a single file to train with """ self.trainingfile = trainingfile self.add_input_file(self.trainingfile)
def add_training_file(self, trainingfile):
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
def __init__(self, cp, dax = False):
def __init__(self, cp, dax = False):
def __init__(self, cp, dax = False):
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err')
self.set_stderr_file('logs/' + exec_name + '-$(cluster)-$(process).err')
def __init__(self, cp, dax = False):
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
self.add_file_arg("-A -a 1 %s %s %s" % (self.trainedforest, self.file_to_rank, self.ranked_file))
self.add_file_arg("-A -a 4 %s %s %s" % (self.trainedforest, self.file_to_rank, self.ranked_file))
def finalize(self): """ finalize the MvscUseForestNode """ self.ranked_file = self.file_to_rank.replace('.pat','.dat') self.add_file_arg("-A -a 1 %s %s %s" % (self.trainedforest, self.file_to_rank, self.ranked_file)) self.add_output_file(self.ranked_file)
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
class MvscUpdateSqlJob(pipeline.CondorDAGJob):
class MvscUpdateSqlJob(pipeline.AnalysisJob, pipeline.CondorDAGJob):
def finalize(self): """ finalize the MvscUseForestNode """ self.ranked_file = self.file_to_rank.replace('.pat','.dat') self.add_file_arg("-A -a 1 %s %s %s" % (self.trainedforest, self.file_to_rank, self.ranked_file)) self.add_output_file(self.ranked_file)
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
self.set_stderr_file('logs/' + exec_namee + '-$(cluster)-$(process).err')
self.set_stderr_file('logs/' + exec_name + '-$(cluster)-$(process).err')
def __init__(self, cp, dax = False): """ cp: ConfigParser object from which options are read. """ exec_name = "mvsc_update_sql" universe = "vanilla" executable = cp.get('condor',exec_name) pipeline.CondorDAGJob.__init__(self, universe, executable) pipeline.AnalysisJob.__init__(self, cp, dax) self.add_condor_cmd('getenv...
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
class MvscUpdateSqlNode(pipeline.CondorDAGNode):
class MvscUpdateSqlNode(pipeline.AnalysisNode, pipeline.CondorDAGNode):
def __init__(self, cp, dax = False): """ cp: ConfigParser object from which options are read. """ exec_name = "mvsc_update_sql" universe = "vanilla" executable = cp.get('condor',exec_name) pipeline.CondorDAGJob.__init__(self, universe, executable) pipeline.AnalysisJob.__init__(self, cp, dax) self.add_condor_cmd('getenv...
05168fcc33be29301cc0a9702cd5e8c93d815a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/05168fcc33be29301cc0a9702cd5e8c93d815a6e/inspiral.py
def get_delta_t_rss(latitude,longitude,coinc,reference_frequency=None): """ returns the rss timing error for a particular location in the sky (longitude,latitude) """ earth_center = (0.0,0.0,0.0) tref = {} tgeo={} for ifo in coinc.ifo_list: if reference_frequency: tFromRefFreq = get_signal_duration(ifo,coinc,reference...
82d9b847712430a808c0151d33158a9f2c80ba8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/82d9b847712430a808c0151d33158a9f2c80ba8b/skylocutils.py
if (cpt[0]-fpt[0])*(cpt[0]-fpt[0]) <= coarseres/2 and \ (cpt[1]-fpt[1])*(cpt[1]-fpt[1])*abs(sin(fpt[1])) <= coarseres/2:
if (cpt[0]-fpt[0])*(cpt[0]-fpt[0]) <= ds*ds/4 and \ (cpt[1]-fpt[1])*(cpt[1]-fpt[1])*abs(sin(fpt[1]))*abs(sin(fpt[1])) \ <= ds*ds/4:
def map_grids(coarsegrid,finegrid,coarseres=4.0): """ takes the two grids (lists of lat/lon tuples) and returns a dictionary where the points in the coarse grid are the keys and lists of tuples of points in the fine grid are the values """ fgtemp = finegrid coarsedict = {} for cpt in coarsegrid: flist = [] for fpt in f...
82d9b847712430a808c0151d33158a9f2c80ba8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/82d9b847712430a808c0151d33158a9f2c80ba8b/skylocutils.py
fgtemp.remove(pt) return coarsedict
fgtemp.remove(rpt) return coarsedict, fgtemp
def map_grids(coarsegrid,finegrid,coarseres=4.0): """ takes the two grids (lists of lat/lon tuples) and returns a dictionary where the points in the coarse grid are the keys and lists of tuples of points in the fine grid are the values """ fgtemp = finegrid coarsedict = {} for cpt in coarsegrid: flist = [] for fpt in f...
82d9b847712430a808c0151d33158a9f2c80ba8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/82d9b847712430a808c0151d33158a9f2c80ba8b/skylocutils.py
pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.setupJob(name=self.name,dir=dir,cp=cp,tag_base=tag_base)
self.setupJob(name=self.name,dir=dir,cp=cp,tag_base=tag_base)
def __init__(self,opts,cp,dir='',tag_base=''): """ """ self.__executable = string.strip(cp.get('fu-condor','plotmcmc')) self.name = os.path.split(self.__executable.rstrip('/'))[1] self.__universe = "vanilla"
3b80bb445789f475126530607b67bd534325dde5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3b80bb445789f475126530607b67bd534325dde5/stfu_pipe.py
if '||' in line: tab.append(line.split('||'))
if '||' in line: tab.append(line.split('||')[1:])
def wiki_table_parse(file): #FIXME assumes table files of the form # === title === # ||data||data|| # ||data||data|| tabs = [] titles = [] tab = [] for line in open(file).readlines(): if '===' in line: titles.append(line.replace("=","")) if tab: tabs.append(tab) tab = [] if '||' in line: tab.append(line.split('||')) t...
e0cf194d65477330c5eb4cd1396384f15444095e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e0cf194d65477330c5eb4cd1396384f15444095e/cbcwebpage.py
self.tr
self.add('<tr>')
def __init__(self, two_d_data, title="", caption="", tag="table", num="1"): markup.page.__init__(self, mode="strict_html") self.add("<br>") if title: self.b("%s. %s" %(num, title.upper()) ) self.table() for row in two_d_data: self.tr tdstr = "" for col in row: tdstr += "<td>%s</td>" % (str(col),) self.add(tdstr) self....
e0cf194d65477330c5eb4cd1396384f15444095e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e0cf194d65477330c5eb4cd1396384f15444095e/cbcwebpage.py
self.tr.close()
self.add('</tr>')
def __init__(self, two_d_data, title="", caption="", tag="table", num="1"): markup.page.__init__(self, mode="strict_html") self.add("<br>") if title: self.b("%s. %s" %(num, title.upper()) ) self.table() for row in two_d_data: self.tr tdstr = "" for col in row: tdstr += "<td>%s</td>" % (str(col),) self.add(tdstr) self....
e0cf194d65477330c5eb4cd1396384f15444095e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e0cf194d65477330c5eb4cd1396384f15444095e/cbcwebpage.py
htmlfile.write('<img src="'+paramnames[i]+'.png"><img src="'+paramnames[i]+'_samps.png><br>')
htmlfile.write('<img src="'+paramnames[i]+'.png"><img src="'+paramnames[i]+'_samps.png"><br>')
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
c11ca7c9b15f66f09585f574c7f59c4643aef25c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c11ca7c9b15f66f09585f574c7f59c4643aef25c/OddsPostProc.py
cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time)), math.ceil(float(time))))
if math.floor(float(time)) != math.ceil(float(time)): cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time)), math.ceil(float(time)))) else: cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time))-0.5, math.floor(float(time))+0.5))
def getParamsFromCache(fileName,type,ifo=None,time=None): qscanList = [] cacheList = lal.Cache.fromfile(open(fileName)) if not cacheList: return qscanList cacheSelected = cacheList.sieve(description=type,ifos=ifo) if time: cacheSelected = cacheSelected.sieve(segment=segments.segment(math.floor(float(time)), math.ceil(f...
1d06c8f74136eb0c234bbd1f0b42590561f3cbb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1d06c8f74136eb0c234bbd1f0b42590561f3cbb9/stfu_pipe.py
if triple_coinc is True: for ifo_3 in ifos: if ifos.index(ifo_3)>ifos.index(ifo_2): triples.append(ifo_1+ifo_2+ifo_3)
for ifo_3 in ifos: if ifos.index(ifo_3)>ifos.index(ifo_2): triples.append(ifo_1+ifo_2+ifo_3)
def coinc_segments(start,end,ifos): #== first, construct doubles and triples lists doubles=[] triples=[] for ifo_1 in ifos: for ifo_2 in ifos: if ifos.index(ifo_2)>ifos.index(ifo_1): doubles.append(ifo_1+ifo_2) if triple_coinc is True: for ifo_3 in ifos: if ifos.index(ifo_3)>ifos.index(ifo_2): triples.append(ifo_1+ifo_...
6952e29b535f5fb01b1e1257b1e74ed7ae6060b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6952e29b535f5fb01b1e1257b1e74ed7ae6060b4/dqSegmentUtils.py
segments[ifo] = grab_segments(gps_start,\ gps_end,\
segments[ifo] = grab_segments(start,\ end,\
def coinc_segments(start,end,ifos): #== first, construct doubles and triples lists doubles=[] triples=[] for ifo_1 in ifos: for ifo_2 in ifos: if ifos.index(ifo_2)>ifos.index(ifo_1): doubles.append(ifo_1+ifo_2) if triple_coinc is True: for ifo_3 in ifos: if ifos.index(ifo_3)>ifos.index(ifo_2): triples.append(ifo_1+ifo_...
6952e29b535f5fb01b1e1257b1e74ed7ae6060b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6952e29b535f5fb01b1e1257b1e74ed7ae6060b4/dqSegmentUtils.py
y.segment_def_cdb = x.creator_db) AND \ NOT (segment.start_time > %s OR %s > segment.end_time) \
y.segment_def_cdb = x.creator_db) \
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
adc581022a281d7b14802f291e6460b387201eab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/adc581022a281d7b14802f291e6460b387201eab/fu_utils.py
sqlQuery=query01%(segName,ifo,gpsStop,gpsStart,gpsStop,gpsStart)
sqlQuery=query01%(segName,ifo,gpsStop,gpsStart)
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
adc581022a281d7b14802f291e6460b387201eab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/adc581022a281d7b14802f291e6460b387201eab/fu_utils.py
AND y.segment_def_cdb = x.creator_db \
AND y.segment_def_cdb = x.creator_db \
def __init__(self,LDBDServerURL=None,quiet=bool(False),pickle=None,blinded=False): """ This class setups of for connecting to a LDBD server specified at command line to do segment queries as part of the follow up pipeline. If the user does not specify the LDBD server to use the method will use the environment variable...
adc581022a281d7b14802f291e6460b387201eab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/adc581022a281d7b14802f291e6460b387201eab/fu_utils.py
extent = off_segs.extent()
extent = (off_segs | on_segs).extent()
def get_exttrig_trials(on_segs, off_segs, veto_files): """ Return a tuple of (off-source time bins, off-source veto mask, index of trial that is on source). The off-source veto mask is a one-dimensional boolean array where True means vetoed. @param on_segs: On-source segments @param off_segs: Off-source segments @param...
3b88a1db0dc91661ad0cd027d8be3fd9fcede3d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3b88a1db0dc91661ad0cd027d8be3fd9fcede3d4/grbsummary.py
if dY>=0 and dX>=0:
if dY>=0 and dX>0:
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)->...
0aae795f34e87fdf3988ad1f607c71be6b045d53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0aae795f34e87fdf3988ad1f607c71be6b045d53/followupPDSurface.py
elif dY>=0 and dX<0:
elif dY>0 and dX<0:
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)->...
0aae795f34e87fdf3988ad1f607c71be6b045d53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0aae795f34e87fdf3988ad1f607c71be6b045d53/followupPDSurface.py
def __init__(self,fStructure=None,myCoinc=None): if fStructure==None or myCoinc==None: print "Given None Types FS:%s Coinc:%s"%(type(fStructure),type(myCoinc)) return None else: self.fsys=fStructure self.coinc=myCoinc
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def get_RDS_R_L1(self): """ """ tmpList=list() for sngl in self.coinc.sngls: #Determine file type frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'rds') if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype myMaskIndex="*/%s/*/%s/index.html"%(frametype,sngl.time) myMaskPNG="*/%s/*/%s/*...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def get_RDS_R_L1_SEIS(self): """ """ tmpList=list() for sngl in self.coinc.sngls: #Determine file type frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'rds') if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype frametype = frametype + "_SEIS" myMaskIndex="*/%s*/%s/*.html"%(frametype,s...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo)
sys.stdout.write("Omega scan summary file not found or seen empty for %s. ...continuing...\n"%sngl.ifo)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo)
sys.stdout.write("Omega scan summary file not found or seen empty for %s. ...continuing...\n"%sngl.ifo)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo)
sys.stdout.write("Omega scan summary file not found or seen empty for %s. ...continuing...\n"%sngl.ifo)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
pud=os.path.abspath(publication_directory) minFileCount=1 for key,fileList in allSources.items(): if len(fileList) > minFileCount: commonPath=os.path.commonprefix(fileList) for singleFile in fileList: if not singleFile.__contains__(pud): myDestFile=singleFile.replace(commonPath,myDestPath+"/") if not os.path.exists(os....
def __init__(self,type=None,ifo=None,time=None,snr=None,chisqr=None,mass1=None,mass2=None,mchirp=None): """ """ self.type=str(type) self.ifo=str(ifo) self.time=float(time) self.snr=float(snr) self.chisqr=float(chisqr) self.mass1=float(mass1) self.mass2=float(mass2) self.mchirp=float(mchirp)
cabde339221bbc8a748cfedf8ed7be0711b1e7f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cabde339221bbc8a748cfedf8ed7be0711b1e7f9/makeCheckListWiki.py
if re.search( table_name+r'[.]', table_param ) is None:
if table_param.find( table_name+'.' ) == -1:
def __init__( self, table_name, table_param, param_ranges_opt, verbose = False ): """ Parse --param-ranges option. Creates self.param which is the table_name and the table_param appended together (with a '.') and self.param_ranges, which is a list of tuples that give the lower parameter value, whether it is an open or ...
4c49c1fb5437a05aff3cd51768415cbec048e68a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4c49c1fb5437a05aff3cd51768415cbec048e68a/ligolw_sqlutils.py
def get_new_snr(self, index=6.0): # the kwarg 'index' is to be assigned to the parameter chisq_index occurring in the .ini files etc # the parameter nhigh gives the asymptotic behaviour d (ln chisq) / d (ln rho) at large rho # nhigh=2 means chisq~rho^2 along contours of new_snr as expected from the behaviour of mismatc...
a54b8790e6284abfa3f4d5dd75911d7bd58ea9a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a54b8790e6284abfa3f4d5dd75911d7bd58ea9a8/lsctables.py
chisq = self.get_column('chisq') chisq_dof = self.get_column('chisq_dof') rchisq = chisq/ (2*chisq_dof - 2)
rchisq = self.get_column('chisq')/(2*self.get_column('chisq_dof') - 2)
def get_new_snr(self, index=6.0): # the kwarg 'index' is to be assigned to the parameter chisq_index occurring in the .ini files etc # the parameter nhigh gives the asymptotic behaviour d (ln chisq) / d (ln rho) at large rho # nhigh=2 means chisq~rho^2 along contours of new_snr as expected from the behaviour of mismatc...
a54b8790e6284abfa3f4d5dd75911d7bd58ea9a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a54b8790e6284abfa3f4d5dd75911d7bd58ea9a8/lsctables.py
if rchisq > 1.: return snr/ ((1+rchisq**(index/nhigh))/2)**(1./index) else: return snr
newsnr = snr/ (0.5*(1+rchisq**(index/nhigh)))**(1./index) numpy.putmask(newsnr, rchisq < 1, snr) return newsnr
def get_new_snr(self, index=6.0): # the kwarg 'index' is to be assigned to the parameter chisq_index occurring in the .ini files etc # the parameter nhigh gives the asymptotic behaviour d (ln chisq) / d (ln rho) at large rho # nhigh=2 means chisq~rho^2 along contours of new_snr as expected from the behaviour of mismatc...
a54b8790e6284abfa3f4d5dd75911d7bd58ea9a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a54b8790e6284abfa3f4d5dd75911d7bd58ea9a8/lsctables.py
"""
"""
def skyhist_cart(skycarts,samples): """ Histogram the list of samples into bins defined by Cartesian vectors in skycarts """ dot=numpy.dot N=len(skycarts) print 'operating on %d sky points'%(N) bins=zeros(N) for sample in samples: sampcart=pol2cart(sample[RAdim],sample[decdim]) maxdx=max(xrange(0,N),key=lambda i:dot(sa...
48d35325f3b7aee9002aa13f84bee3790743b777 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/48d35325f3b7aee9002aa13f84bee3790743b777/cbcBayesSkyRes.py
raise RuntimeError, "failed to lock %s: %s" % (pidfile_path, e)
raise RuntimeError, "failed to lock %s: %s" % (lockfile, e)
def get_lock(lockfile): """ Tries to write a lockfile containing the current pid. Excepts if the lockfile already contains the pid of a running process. Although this should prevent a lock from being granted twice, it can theoretically deny a lock unjustly in the unlikely event that the original process is gone but a...
4ecf85274ebfa7e11e4cbe79203e3afac8585452 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4ecf85274ebfa7e11e4cbe79203e3afac8585452/pidfile.py
if (int(seg[0]) - seg[0]) / seg[0] > 1e-15 or (int(seg[1]) - seg[1]) / seg[1] > 1e-15:
if abs((int(seg[0]) - seg[0]) / seg[0]) > 1e-14 or abs((int(seg[1]) - seg[1]) / seg[1]) > 1e-14:
def clip_segment(seg, pad, short_segment_duration): # clip segment to the length required by lalapps_StringSearch. if # # duration = segment length - padding # # then # # duration / short_segment_duration - 0.5 # # must be an odd integer, therefore # # 2 * duration + short_segment_duration # # must be divisble b...
7e35b094d9f9357945414d1e531da585725c350d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7e35b094d9f9357945414d1e531da585725c350d/cosmicstring.py
seps=map(lambda s: ang_dist(sample[6],sample[7],s[1],s[0]),skypoints)
seps=map(lambda s: ang_dist(sample[5],sample[6],s[1],s[0]),skypoints)
def sky_hist(skypoints,samples): N=len(skypoints) print 'operating on %d sky points' % (N) bins=zeros(N) j=0 for sample in samples: seps=map(lambda s: ang_dist(sample[6],sample[7],s[1],s[0]),skypoints) minsep=math.pi for i in range(0,N): if seps[i]<minsep: minsep=seps[i] mindx=i bins[mindx]=bins[mindx]+1 j=j+1 print 'D...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
sampcart=pol2cart(sample[6],sample[7])
sampcart=pol2cart(sample[5],sample[6])
def skyhist_cart(skycarts,samples): N=len(skypoints) print 'operating on %d sky points'%(N) bins=zeros(N) j=0 for sample in samples: sampcart=pol2cart(sample[6],sample[7]) dots=map(lambda s: numpy.dot(sampcart,s),skycarts) maxdot=0 for i in range(0,N): if dots[i]>maxdot: maxdot=dots[i] mindx=i bins[mindx]=bins[mindx]+1...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot(getinjpar(injection,0),getinjpar(injection,1),'go')
plot(getinjpar(injection,0),getinjpar(injection,1),'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot(getinjpar(injection,5),getinjpar(injection,6),'go')
plot(getinjpar(injection,5),getinjpar(injection,6),'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
if injection and getinjpar(injection,7)<max(pos[:,7]) and getinjpar(injection,7)>min(pos[:,7]) and getinjpar(injection,8)<max(pos[:,8]) and getinjpar(injection,8)>min(pos[:,8]): plot(getinjpar(injection,7),getinjpar(injection,8),'go')
if injection and getinjpar(injection,7)<max(pos[:,7]) and getinjpar(injection,7)>min(pos[:,7]) and getinjpar(injection,8)<max(pos[:,8]) and getinjpar(injection,8)>min(pos[:,8]): plot(getinjpar(injection,7),getinjpar(injection,8),'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot(injection.mass1,injection.mass2,'go')
plot(injection.mass1,injection.mass2,'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot(injection.mass1,injection.distance,'go')
plot(injection.mass1,injection.distance,'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot(getinjpar(injection,4),getinjpar(injection,8),'go')
plot(getinjpar(injection,4),getinjpar(injection,8),'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot(getinjpar(injection,i),getinjpar(injection,j),'go')
plot(getinjpar(injection,i),getinjpar(injection,j),'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
plot([getinjpar(injection,i),getinjpar(injection,i)],[0,max(kdepdf)],'r-.')
plot([getinjpar(injection,i),getinjpar(injection,i)],[0,max(kdepdf)],'r-.',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
htmlfile.write('<img src="'+paramnames[i]+'.png">')
myfig=figure(figsize=(4,3.5),dpi=80) plot(pos[:,i],'.') if injection and min(pos[:,i])<getinjpar(injection,i) and max(pos[:,i])>getinjpar(injection,i): plot([0,len(pos)],[getinjpar(injection,i),getinjpar(injection,i)],'r-.') myfig.savefig(outdir+'/'+paramnames[i]+'_samps.png') htmlfile.write('<img src="'+paramnames[i]+...
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
73c84ed284fcb153278e3e08bd057453c3c5cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/73c84ed284fcb153278e3e08bd057453c3c5cdc8/OddsPostProc.py
galpt = fbins[sbin(fbins,inj_pt,fine_res)]
galpt = fbins[skylocutils.sbin(fbins,inj_pt,fine_res)]
def get_unique_filename(name): """ use this to avoid name collisions """ counter = 1 base_name, ext = os.path.splitext(name) while os.path.isfile(name): name = base_name + '_' + str(counter) + ext counter += 1 return name
43d91fce474394571608d7b00d83c73d87693e07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/43d91fce474394571608d7b00d83c73d87693e07/run_skypoints.py
git_id = check_call_out((git_path, 'log', '-1', '--pretty=%H'))
git_id = check_call_out((git_path, 'log', '-1', '--pretty=format:%H'))
def write_git_version(fileobj): """ Query git to determine current repository status and write a Python module with this information. Ex: >>> write_git_version(open("git_version.py", "w")) >>> import git_version >>> print git_version.id 1b0549019e992d0e001f3c28e8488946f825e873 """ git_path = check_call_out(('/usr/bin/...
60b8cbbb05cab29e42eab07fcc04ec2faf96eca7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/60b8cbbb05cab29e42eab07fcc04ec2faf96eca7/determine_git_version.py
git_udate = float(check_call_out((git_path, 'log', '-1', '--pretty=%ct')))
git_udate = float(check_call_out((git_path, 'log', '-1', '--pretty=format:%ct')))
def write_git_version(fileobj): """ Query git to determine current repository status and write a Python module with this information. Ex: >>> write_git_version(open("git_version.py", "w")) >>> import git_version >>> print git_version.id 1b0549019e992d0e001f3c28e8488946f825e873 """ git_path = check_call_out(('/usr/bin/...
60b8cbbb05cab29e42eab07fcc04ec2faf96eca7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/60b8cbbb05cab29e42eab07fcc04ec2faf96eca7/determine_git_version.py
git_author_name = check_call_out((git_path, 'log', '-1', '--pretty=%an')) git_author_email = check_call_out((git_path, 'log', '-1', '--pretty=%ae'))
git_author_name = check_call_out((git_path, 'log', '-1', '--pretty=format:%an')) git_author_email = check_call_out((git_path, 'log', '-1', '--pretty=format:%ae'))
def write_git_version(fileobj): """ Query git to determine current repository status and write a Python module with this information. Ex: >>> write_git_version(open("git_version.py", "w")) >>> import git_version >>> print git_version.id 1b0549019e992d0e001f3c28e8488946f825e873 """ git_path = check_call_out(('/usr/bin/...
60b8cbbb05cab29e42eab07fcc04ec2faf96eca7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/60b8cbbb05cab29e42eab07fcc04ec2faf96eca7/determine_git_version.py
git_committer_name = check_call_out((git_path, 'log', '-1', '--pretty=%cn')) git_committer_email = check_call_out((git_path, 'log', '-1', '--pretty=%ce'))
git_committer_name = check_call_out((git_path, 'log', '-1', '--pretty=format:%cn')) git_committer_email = check_call_out((git_path, 'log', '-1', '--pretty=format:%ce'))
def write_git_version(fileobj): """ Query git to determine current repository status and write a Python module with this information. Ex: >>> write_git_version(open("git_version.py", "w")) >>> import git_version >>> print git_version.id 1b0549019e992d0e001f3c28e8488946f825e873 """ git_path = check_call_out(('/usr/bin/...
60b8cbbb05cab29e42eab07fcc04ec2faf96eca7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/60b8cbbb05cab29e42eab07fcc04ec2faf96eca7/determine_git_version.py
np.savetxt('ranked_sky_pixels',np.column_stack([np.asarray(toppoints)[:,0:1],np.asarray(toppoints)[:,1],np.asarray(toppoints)[:,3]]))
np.savetxt(os.path.join(outdir,'ranked_sky_pixels.dat'),np.column_stack([np.asarray(toppoints)[:,0:1],np.asarray(toppoints)[:,1],np.asarray(toppoints)[:,3]]))
def plotSkyMap(skypos,skyres,sky_injpoint,confidence_levels,outdir): from mpl_toolkits.basemap import Basemap from pylal import skylocutils np.seterr(under='ignore') skypoints=np.array(skylocutils.gridsky(float(skyres))) skycarts=map(lambda s: pol2cart(s[1],s[0]),skypoints) skyinjectionconfidence=None shist=skyhist...
ca9a68b4480ed4f4824eab4d4d19762aba7828e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ca9a68b4480ed4f4824eab4d4d19762aba7828e7/bayespputils.py
inspiral.InspiralNode.__init__(self,job)
pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self)
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