rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
self.veto_definer = os.path.basename(definer_file) | def update_veto_lists(self, timeoffset, veto_definer = None): | 1e970725389ab6428d527ad9ebb1d1f3b0c5d669 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1e970725389ab6428d527ad9ebb1d1f3b0c5d669/pylal_exttrig_llutils.py | |
xmldoc,digest = ligolw_utils.load_fileobj(file) | xmldoc,digest = utils.load_fileobj(file) | def fromsegmentxml(file): """ Read a segmentlist from the file object file containing an xml segment table. """ xmldoc,digest = ligolw_utils.load_fileobj(file) seg_table = table.get_table(xmldoc,lsctables.SegmentTable.tableName) segs = segmentlist() for seg in seg_table: segs.append(segment(seg.start_time,seg.end_tim... | dbdcf1eb646745c0d554835728d14901c48bc55f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dbdcf1eb646745c0d554835728d14901c48bc55f/dqSegmentUtils.py |
def fromsegmentcsvCSV(csvfile): | def fromsegmentcsv(csvfile): | def fromsegmentcsvCSV(csvfile): """ Read a segmentlist from the file object file containing a comma separated list of segments. """ def CSVLineToSeg(line): tstart, tend = map(int, line.split(',')) return segment(tstart, tend) segs = segmentlist([CSVLineToSeg(line) for line in csvfile]) return segs.coalesce() | dbdcf1eb646745c0d554835728d14901c48bc55f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dbdcf1eb646745c0d554835728d14901c48bc55f/dqSegmentUtils.py |
exe = make_external_call('which ligolw_segment_query')[0] segment_cmd = ' '.join([exe,'--query-segments',\ '--database','--include-segments',flag,\ '--gps-start-time',str(start),\ '--gps-end-time',str(end)]) segxmlout,segerr = make_external_call(segment_cmd) segs = segmentlist() if not segerr: tmpfile = tempfile.Tem... | start = int(start) end = int(end) database_location = os.environ['S6_SEGMENT_SERVER'] connection = segmentdb_utils.setup_database(database_location) engine = query_engine.LdbdQueryEngine(connection) spec = flag.split(':') if len(spec) < 2 or len(spec) > 3: print >>sys.stderr, "Included segemen... | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ exe = make_external_call('which ligolw_segment_query')[0] #== construct segment query segment_cmd = ' '.join([exe,'--query-segments',\ '--database','--include-segments',fl... | dbdcf1eb646745c0d554835728d14901c48bc55f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dbdcf1eb646745c0d554835728d14901c48bc55f/dqSegmentUtils.py |
print >>sys.stderr, "Warning: Call to ligolw_segment_query failed with "+\ "command:" print >>sys.stderr, "\n"+segment_cmd+"\n" | version = '*' segdefs = segmentdb_utils.expand_version_number(engine,(ifo,name,version,\ start,end,0,0)) segs = segmentdb_utils.query_segments(engine, 'segment', segdefs) segs = reduce(operator.or_, segs).coalesce() | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ exe = make_external_call('which ligolw_segment_query')[0] #== construct segment query segment_cmd = ' '.join([exe,'--query-segments',\ '--database','--include-segments',fl... | dbdcf1eb646745c0d554835728d14901c48bc55f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/dbdcf1eb646745c0d554835728d14901c48bc55f/dqSegmentUtils.py |
template = """ <profile namespace="dagman" key="priority">%s</profile>\n""" | template = """ <profile namespace="condor" key="priority">%s</profile>\n""" | 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 | 0f1584337feda1ac8b84e91a4ba6c2f71bd58746 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0f1584337feda1ac8b84e91a4ba6c2f71bd58746/pipeline.py |
if ca and os.path.isfile(ca[0].path()): | if ca and os.path.isfile(ca[0].path()): | def add_dq(self, page): page.add_section("DQ", "Data Quality for %s" % (self.coinctime,)) page.sections["DQ"].div("This section gives vetoes and flags that were on") | 5a0624e319d26832dd690150b2471e377b4f06d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5a0624e319d26832dd690150b2471e377b4f06d6/followup_page.py |
coarsedict = {} | coarsedict = {} | 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 = {} ds = coarseres*pi/180.0 for cpt in coarseg... | 0eff34c0b6040ed802a1751bd751f465d7f00664 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0eff34c0b6040ed802a1751bd751f465d7f00664/skylocutils.py |
if (cpt[0]-fpt[0])*(cpt[0]-fpt[0]) <= ds*ds/4.0 and \ (cpt[1]-fpt[1])*(cpt[1]-fpt[1])*sin(cpt[0])*sin(cpt[0]) <= ds*ds/4.0: | if (cpt[0]-fpt[0])*(cpt[0]-fpt[0]) - ds*ds/4.0 <= epsilon and \ (cpt[1]-fpt[1])*(cpt[1]-fpt[1])*sin(cpt[0])*sin(cpt[0]) \ - ds*ds/4.0 <= epsilon: | 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 = {} ds = coarseres*pi/180.0 for cpt in coarseg... | 0eff34c0b6040ed802a1751bd751f465d7f00664 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0eff34c0b6040ed802a1751bd751f465d7f00664/skylocutils.py |
while os.path.isfile(base_name): base_name = base_name + '_' + str(counter) + ext | while os.path.isfile(name): name = base_name + '_' + str(counter) + ext | def get_unique_filename(name): """ use this to avoid name collisions """ counter = 1 base_name, ext = os.path.splitext(name) while os.path.isfile(base_name): base_name = base_name + '_' + str(counter) + ext counter += 1 return base_name + ext | f13e4b2290215e52c05743948dd99e447825cb46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f13e4b2290215e52c05743948dd99e447825cb46/run_skypoints.py |
return base_name + ext | return name | def get_unique_filename(name): """ use this to avoid name collisions """ counter = 1 base_name, ext = os.path.splitext(name) while os.path.isfile(base_name): base_name = base_name + '_' + str(counter) + ext counter += 1 return base_name + ext | f13e4b2290215e52c05743948dd99e447825cb46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f13e4b2290215e52c05743948dd99e447825cb46/run_skypoints.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 ) | 161e33ab7c95414ed2db862fbd5567595c48ff8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/161e33ab7c95414ed2db862fbd5567595c48ff8f/printutils.py |
from glue.lal import LIGOTimeGPS | def get_pyvalue(self): return generic_get_pyvalue(self) | 161e33ab7c95414ed2db862fbd5567595c48ff8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/161e33ab7c95414ed2db862fbd5567595c48ff8f/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] | 161e33ab7c95414ed2db862fbd5567595c48ff8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/161e33ab7c95414ed2db862fbd5567595c48ff8f/printutils.py |
segtest = Popen('FrCheck -i '+frame,shell=True,stdout=PIPE) if os.waitpid(segtest.pid,0)[1]==11: continue | segtest = subprocess.Popen([frcheck,"-i",frame],stdout=subprocess.PIPE) if os.waitpid(segtest.pid,0)[1]==11: print >>sys.stderr, "Warning. Segmentation fault detected with command:" print >>sys.stderr, "FrCheck -i "+frame continue | def grab_data(start,end,channel,type,\ nds=False,verbose=False,dmt=False): """ This function will return the frame data for the given channel of the given type in the given [start,end] time range and will construct a gps time vector to go with it. The nds option is not yet supported, and the dmt option will return data... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
ldf_exe,sourced = GetCommandOutput('which ligo_data_find') if ldf_exe.find('ligo_data_find')==-1: print "Cannot find ligo_data_find. Please ensure, lscsoft is sourced." sys.exit() | def generate_cache(start_time,end_time,ifos,types,return_files=False): """ This function will return a cache of files as found by ligo_data_find, given start and end time, and lists of ifos and types. If the return_files option is given as 'True' the function will return a list of frames with absolute paths, otherwise ... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py | |
data_find_cmd = ldf_exe.replace('\n','')+\ | data_find_cmd = ldf+\ | def generate_cache(start_time,end_time,ifos,types,return_files=False): """ This function will return a cache of files as found by ligo_data_find, given start and end time, and lists of ifos and types. If the return_files option is given as 'True' the function will return a list of frames with absolute paths, otherwise ... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
cache_out = Popen(data_find_cmd,shell=True,stdout=PIPE) | cache_out = subprocess.Popen(data_find_cmd,shell=True,\ stdout=subprocess.PIPE) | def generate_cache(start_time,end_time,ifos,types,return_files=False): """ This function will return a cache of files as found by ligo_data_find, given start and end time, and lists of ifos and types. If the return_files option is given as 'True' the function will return a list of frames with absolute paths, otherwise ... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
ldf_exe='ligo_data_find' ldf,ldf_status = GetCommandOutput('which '+ldf_exe) if ldf_status != 0: print >>sys.stderr, \ "Error: ligo_data_find not found. Please ensure lscsoftrc is sourced" sys.exit() | p = subprocess.Popen(["which", "ligo_data_find"], stdout=subprocess.PIPE) ldf = p.communicate()[0].replace('\n','') if p.returncode != 0: raise ValueError, "ligo_data_find" p.stdout.close() ldf = os.path.realpath(ldf) | def find_types(types,search='standard'): """ This function will return a valid list of LIGO frame types given the list of type strings. The search option defines the breadth of the search, to speed up the search, the following search options are supported: 'standard','short','full'. The 'R', 'T', and 'M' (raw, raw sec... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
find_cmd = ldf_exe+" -y | egrep " | find_cmd = ldf+" -y | egrep " | def find_types(types,search='standard'): """ This function will return a valid list of LIGO frame types given the list of type strings. The search option defines the breadth of the search, to speed up the search, the following search options are supported: 'standard','short','full'. The 'R', 'T', and 'M' (raw, raw sec... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
if find_cmd != ldf_exe+" -y | egrep '": found_types_out = Popen(find_cmd,shell=True,stdout=PIPE) | if find_cmd != ldf+" -y | egrep '": found_types_out = subprocess.Popen(find_cmd,shell=True,\ stdout=subprocess.PIPE) | def find_types(types,search='standard'): """ This function will return a valid list of LIGO frame types given the list of type strings. The search option defines the breadth of the search, to speed up the search, the following search options are supported: 'standard','short','full'. The 'R', 'T', and 'M' (raw, raw sec... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
ldf_exe='ligo_data_find' ldf_status = GetCommandOutput('which '+ldf_exe)[1] if ldf_status != 0: print >>sys.stderr, "Error: ligo_data_find not found. "+\ "Please ensure lscsoftrc is sourced" sys.exit() | p = subprocess.Popen(["which", "ligo_data_find"], stdout=subprocess.PIPE) ldf = p.communicate()[0].replace('\n','') if p.returncode != 0: raise ValueError, "ligo_data_find" p.stdout.close() ldf = os.path.realpath(ldf) | def find_channels(channels=None,\ types=None,\ ifos=None,\ ex_channels=None,\ ignore=[],\ match=False,\ time=None,\ unique=False,\ verbose=False): """ This function will use FrChannels to return all LIGO data channels matching the given list of 'channels' strings, whilst exluding the 'ex_channels' strings. Using find_... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
frame_cmd = ldf_exe+''' --observatory '''+ifo[0:1]+\ | frame_cmd = ldf+''' --observatory '''+ifo[0:1]+\ | def find_channels(channels=None,\ types=None,\ ifos=None,\ ex_channels=None,\ ignore=[],\ match=False,\ time=None,\ unique=False,\ verbose=False): """ This function will use FrChannels to return all LIGO data channels matching the given list of 'channels' strings, whilst exluding the 'ex_channels' strings. Using find_... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
frame_out = Popen(frame_cmd,shell=True,stdout=PIPE,stderr=PIPE) | frame_out = subprocess.Popen(frame_cmd,shell=True,stdout=subprocess.PIPE,\ stderr=subprocess.PIPE) | def find_channels(channels=None,\ types=None,\ ifos=None,\ ex_channels=None,\ ignore=[],\ match=False,\ time=None,\ unique=False,\ verbose=False): """ This function will use FrChannels to return all LIGO data channels matching the given list of 'channels' strings, whilst exluding the 'ex_channels' strings. Using find_... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
channel_list_out = Popen(channel_find_cmd,shell=True,stdout=PIPE) | channel_list_out = subprocess.Popen(channel_find_cmd,shell=True,\ stdout=subprocess.PIPE) | def find_channels(channels=None,\ types=None,\ ifos=None,\ ex_channels=None,\ ignore=[],\ match=False,\ time=None,\ unique=False,\ verbose=False): """ This function will use FrChannels to return all LIGO data channels matching the given list of 'channels' strings, whilst exluding the 'ex_channels' strings. Using find_... | d6c81a47cb2c69421bd3fd8e5948cd64f1613028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d6c81a47cb2c69421bd3fd8e5948cd64f1613028/dqFrameUtils.py |
return map(lambda (a,b,c): detector_threshold(min_threshold,ifos,a,b,c,sensitivities), zip(RA,dec,gps_time)) | return map(lambda (a,b,c): detector_thresholds(min_threshold,ifos,a,b,c,sensitivities), zip(RA,dec,gps_time)) | def detector_thresholds(min_threshold, ifos, RA, dec, gps_time, sensitivities=None): """ Return a dictionary of sensitivity thresholds for each detector, based on a minimum threshold of min_threshold in the least sensitive one, for a source at position (RA,dec) specified in radians at time gps_time. Specifying a dictio... | 7e46b391c8421215f6aee0f9877e5eba4bda2eef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7e46b391c8421215f6aee0f9877e5eba4bda2eef/grbsummary.py |
if len(indexList) > 1: | if len(indexList) >= 1: | 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.pat... | b3163edbe9cf1f93b8808384b7cd84df9ce5fcf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/b3163edbe9cf1f93b8808384b7cd84df9ce5fcf0/makeCheckListWiki.py |
cohSnrTimeTable.data[i+1][0]=wikiPage.linkedRemoteImaage(image,thumbList[i]) | cohSnrTimeTable.data[i+1][0]=wikiPage.linkedRemoteImage(image,thumbList[i]) | 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.pat... | b3163edbe9cf1f93b8808384b7cd84df9ce5fcf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/b3163edbe9cf1f93b8808384b7cd84df9ce5fcf0/makeCheckListWiki.py |
while True: | while areasize<len(np.asarray(toppoints)[:,3]): | def greedyBin2(posterior_array,par_bins,confidence_levels,par_names=None,injection=None): if par_names: par1_name,par2_name=par_names else: par1_name="Parameter 1" par2_name="Parameter 2" par1pos=posterior_array[:,0] par2pos=posterior_array[:,1] par1_bin,par2_bin=par_bins if injection: par1_injvalue,par2_injvalue=i... | 17fcc5ffbe973067680602c29ae70d94df6864f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/17fcc5ffbe973067680602c29ae70d94df6864f7/bayespputils.py |
tm = date.XLALGPSToUTC(date.LIGOTimeGPS(grb.time)) | tm = date.XLALGPSToUTC(LIGOTimeGPS(grb.time)) | coldef = create_col(coldict['nolong']) | ba16d4d51c4acdce4300378295193616b0a6adee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ba16d4d51c4acdce4300378295193616b0a6adee/pylal_exttrig_llutils.py |
os.path.join("bin", "OddsPostProc.py"), | 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 | 7416e5478265e1daf9ccdb3c1282d7c388da0107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7416e5478265e1daf9ccdb3c1282d7c388da0107/setup.py | |
raise NotImplemented | raise NotImplementedError | def add_content(self, data, label="_nolabel_"): """ Stub. Replace with a method that appends values or lists of values to self.data_sets and appends labels to self.data_labels. Feel free to accept complicated inputs, but try to store only the raw numbers that will enter the plot. """ raise NotImplemented | 42bbef7c1d60a2ed11a378bc8ea6cb5ffffd3807 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/42bbef7c1d60a2ed11a378bc8ea6cb5ffffd3807/plotutils.py |
raise NotImplemented | raise NotImplementedError | def finalize(self): """ Stub. Replace with a function that creates and makes your plot pretty. Do not do I/O here. """ raise NotImplemented | 42bbef7c1d60a2ed11a378bc8ea6cb5ffffd3807 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/42bbef7c1d60a2ed11a378bc8ea6cb5ffffd3807/plotutils.py |
def __init__(self, tag, title="", secnum="1", pagenum="1", level=2): | def __init__(self, tag, title="", secnum="1", pagenum="1", level=2, open_by_default=False): | def __init__(self, tag, title="", secnum="1", pagenum="1", level=2): markup.page.__init__(self, mode="strict_html") self.pagenum = pagenum self.secnum = secnum self._title = title self.sections = {} self.section_ids = [] self.level = level self.tag = tag self.id = tag + self.secnum self.tables = 0 self.add('<div class=... | 4a1883f5d99ab45340837694512c34f07e262d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4a1883f5d99ab45340837694512c34f07e262d9d/cbcwebpage.py |
self.div(id="div_"+secnum , style='display:none;') def add_section(self, tag, title=""): | if open_by_default: style = 'display:block;' else: style = 'display:none;' self.div(id="div_"+secnum , style=style) def add_section(self, tag, title="", open_by_default=False): | def __init__(self, tag, title="", secnum="1", pagenum="1", level=2): markup.page.__init__(self, mode="strict_html") self.pagenum = pagenum self.secnum = secnum self._title = title self.sections = {} self.section_ids = [] self.level = level self.tag = tag self.id = tag + self.secnum self.tables = 0 self.add('<div class=... | 4a1883f5d99ab45340837694512c34f07e262d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4a1883f5d99ab45340837694512c34f07e262d9d/cbcwebpage.py |
self.sections[tag] = _section(tag, title=title, secnum=secnum, pagenum=self.pagenum, level=self.level+1) | self.sections[tag] = _section(tag, title=title, secnum=secnum, pagenum=self.pagenum, level=self.level+1, open_by_default=open_by_default) | def add_section(self, tag, title=""): secnum = "%s.%d" % (self.secnum, len(self.sections.values())+1) self.sections[tag] = _section(tag, title=title, secnum=secnum, pagenum=self.pagenum, level=self.level+1) self.section_ids.append([len(self.sections.values()), tag]) return self.sections[tag] | 4a1883f5d99ab45340837694512c34f07e262d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4a1883f5d99ab45340837694512c34f07e262d9d/cbcwebpage.py |
def add_section(self, tag, title="", level=2): | def add_section(self, tag, title="", level=2, open_by_default=False): | def add_section(self, tag, title="", level=2): """ """ secnum = len(self.sections.values()) + 1 self.section_ids.append([secnum, tag]) self.sections[tag] = _section(title=title, tag=tag, secnum=str(secnum), pagenum=str(self.pagenum), level=level) return self.sections[tag] | 4a1883f5d99ab45340837694512c34f07e262d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4a1883f5d99ab45340837694512c34f07e262d9d/cbcwebpage.py |
self.sections[tag] = _section(title=title, tag=tag, secnum=str(secnum), pagenum=str(self.pagenum), level=level) | self.sections[tag] = _section(title=title, tag=tag, secnum=str(secnum), pagenum=str(self.pagenum), level=level, open_by_default=open_by_default) | def add_section(self, tag, title="", level=2): """ """ secnum = len(self.sections.values()) + 1 self.section_ids.append([secnum, tag]) self.sections[tag] = _section(title=title, tag=tag, secnum=str(secnum), pagenum=str(self.pagenum), level=level) return self.sections[tag] | 4a1883f5d99ab45340837694512c34f07e262d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/4a1883f5d99ab45340837694512c34f07e262d9d/cbcwebpage.py |
os.path.join("bin", "checkPerformedInjections.py") | os.path.join("bin", "pylal_cbc_select_hardware_injections") | 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 | d4021458e10470bbc2dd3ba9c511a6154a557ccf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/d4021458e10470bbc2dd3ba9c511a6154a557ccf/setup.py |
os.path.join('bin','LSCdataFindcheck'), | def run(self): # remove the automatically generated user env scripts for script in [ 'glue-user-env.sh', 'glue-user-env.csh' ]: log.info( 'removing ' + script ) try: os.unlink(os.path.join('etc',script)) except: pass | eeaee3c5f13d6d10cc61da4e50c863008b069fcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/eeaee3c5f13d6d10cc61da4e50c863008b069fcb/setup.py | |
rate.to_moving_mean_density(binnedarray, filters.get(name, default_filter)) | def finish(self, filters = {}, verbose = False): default_filter = rate.gaussian_window(21) # normalizing each array so that its sum is 1 has the # effect of making the integral of P(x) dx equal 1 after # the array is transformed to an array of densities (which # is done by dividing each bin by dx). N = len(self.zero_la... | 378566a4728fcf70944273ef258cafeac653e076 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/378566a4728fcf70944273ef258cafeac653e076/ligolw_burca_tailor.py | |
def load_fileobj(fileobj, gz = False, xmldoc = None, contenthandler = None): | def load_fileobj(fileobj, gz = None, xmldoc = None, contenthandler = None): | def load_fileobj(fileobj, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file object fileobj, and return the contents as a LIGO Light Weight document tree. The file object does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional xmldoc argument is provided and not None, the parsed XML tree will be appended to that document, otherwise a new document will be created. The return value is a tuple, the first element of the tuple is the... | does not need to be seekable. If the gz parameter is None (the default) then gzip compressed data will be automatically detected and decompressed, otherwise decompression can be forced on or off by setting gz to True or False respectively. If the optional xmldoc argument is provided and not None, the parsed XML tree ... | def load_fileobj(fileobj, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file object fileobj, and return the contents as a LIGO Light Weight document tree. The file object does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
>>> xmldoc, digest = utils.load_fileobj(sys.stdin, verbose = True, gz = True) | >>> xmldoc, digest = utils.load_fileobj(sys.stdin) | def load_fileobj(fileobj, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file object fileobj, and return the contents as a LIGO Light Weight document tree. The file object does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
if gz: fileobj = gzip.GzipFile(mode = "rb", fileobj = RewindableInputFile(fileobj)) | if gz != False: fileobj = RewindableInputFile(fileobj) magic = fileobj.read(2) fileobj.seek(0, os.SEEK_SET) if gz == True or magic == '\037\213': fileobj = gzip.GzipFile(mode = "rb", fileobj = fileobj) | def load_fileobj(fileobj, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file object fileobj, and return the contents as a LIGO Light Weight document tree. The file object does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): | def load_filename(filename, verbose = False, gz = None, xmldoc = None, contenthandler = None): | def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed while reading if gz is set to True. If filename is None, then stdin is parsed. If the optional xmldoc argument is provided and not None, the parsed XML tree will be appended to that document, otherwise a new document will be... | verbosity messages are printed to stderr if verbose is True. All other parameters are passed verbatim to load_fileobj(), see that function for more information. | def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
>>> xmldoc = utils.load_filename(name, verbose = True, gz = (name or "stdin").endswidth(".gz")) | >>> xmldoc = utils.load_filename(name, verbose = True) | def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
fileobj = file(filename) | fileobj = open(filename, "rb") | def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
def load_url(url, verbose = False, gz = False, xmldoc = None, contenthandler = None): | def load_url(url, verbose = False, gz = None, xmldoc = None, contenthandler = None): | def load_url(url, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ This function has the same behaviour as load_filename() but accepts a URL instead of a filename. Any source from which Python's urllib2 library can read data is acceptable. stdin is parsed if the URL is None. If the optional xm... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
the URL is None. If the optional xmldoc argument is provided and is not None, the parsed XML tree will be appended to that document, otherwise a new document will be created. | the URL is None. | def load_url(url, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ This function has the same behaviour as load_filename() but accepts a URL instead of a filename. Any source from which Python's urllib2 library can read data is acceptable. stdin is parsed if the URL is None. If the optional xm... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py |
cp.add_section("condor-max-jobs","remoteScan_FG_RDS.sh_FG_RDS_full_data","30") cp.add_section("condor-max-jobs","remoteScan_FG_SEIS_RDS.sh_FG_SEIS_RDS_full_data","30") | cp.set("condor-max-jobs","remoteScan_FG_RDS.sh_FG_RDS_full_data","30") cp.set("condor-max-jobs","remoteScan_FG_SEIS_RDS.sh_FG_SEIS_RDS_full_data","30") | def __init__(self, configfile=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... | 052ec25d80b675a95dc5fd874cc352cf2aa11f12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/052ec25d80b675a95dc5fd874cc352cf2aa11f12/stfu_pipe.py |
def figure_out_site(ifo): siteDico = {"H1":"LHO","H2":"LHO","L1":"LLO","V1":"Virgo"} if ifo in siteDico: return siteDico[ifo] else: print >> sys.stderr, "ifo " + ifo + "is not defined in siteDico dictionary" sys.exit(1) | def figure_out_site(ifo): siteDico = {"H1":"LHO","H2":"LHO","L1":"LLO","V1":"Virgo"} if ifo in siteDico: return siteDico[ifo] else: print >> sys.stderr, "ifo " + ifo + "is not defined in siteDico dictionary" sys.exit(1) | ec40ee923d9affd6888443d0124fc88d8f5c424b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ec40ee923d9affd6888443d0124fc88d8f5c424b/stfu_pipe.py | |
preString = "omega/" + science_run(time).upper() + "/background/" + figure_out_site(ifo) | preString = "omega/" + science_run(time).upper() + "/background" | def __init__(self, dag, job, cp, opts, time, ifo, frame_cache, p_nodes=[], type="ht", variety="fg"): """ """ pipeline.CondorDAGNode.__init__(self,job) | ec40ee923d9affd6888443d0124fc88d8f5c424b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ec40ee923d9affd6888443d0124fc88d8f5c424b/stfu_pipe.py |
preString = "omega/" + science_run(time).upper() + "/background/" + figure_out_site(ifo) | preString = "omega/" + science_run(time).upper() + "/background" | def __init__(self, dag, job, cp, opts, time, ifo, p_nodes=[], type="ht", variety="fg"): | ec40ee923d9affd6888443d0124fc88d8f5c424b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ec40ee923d9affd6888443d0124fc88d8f5c424b/stfu_pipe.py |
return re.sub(r"([+-]?[.0-9]+)[Ee]?([+-]?[0-9]+)", r"\1 \\times 10^{\2}", s) | m, e = floatpattern.match(s).groups() return r"%s \\times 10^{%d}" % (m, int(e)) | def latexnumber(s): """ Convert a string of the form "d.dddde-dd" to "d.dddd \times 10^{-dd}" """ return re.sub(r"([+-]?[.0-9]+)[Ee]?([+-]?[0-9]+)", r"\1 \\times 10^{\2}", s) | 834cd2d5dfbacb521f80a99119fe428908027602 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/834cd2d5dfbacb521f80a99119fe428908027602/SnglBurstUtils.py |
signal during the operation | signal during the operation. Example: >>> try: ... put_connection_filename(filename, working_filename, verbose = True) ... except IOTrappedSignal, e: ... os.kill(os.getpid(), e.signum) ... This example re-transmits the most-recently received signal back to itself following completion of the function call, if a signa... | def set_temp_store_directory(connection, temp_store_directory, verbose = False): """ Sets the temp_store_directory parameter in sqlite. """ if verbose: print >>sys.stderr, "setting the temp_store_directory to %s ..." % temp_store_directory, cursor = connection.cursor() cursor.execute("PRAGMA temp_store_directory = '%s'... | 7f8dd863143d760693b9186ed756a001d2756557 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7f8dd863143d760693b9186ed756a001d2756557/dbtables.py |
file(working_filename, "w") | file(working_filename, "w").close() | def newsigterm(signum, frame): global __llwapp_write_filename_got_sig __llwapp_write_filename_got_sig.append(signum) | 7f8dd863143d760693b9186ed756a001d2756557 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7f8dd863143d760693b9186ed756a001d2756557/dbtables.py |
raise IOTrappedSignal(__llwapp_write_filename_got_sig.pop()) | raise IOTrappedSignal(__llwapp_write_filename_got_sig.pop()) | def newsigterm(signum, frame): global __llwapp_write_filename_got_sig __llwapp_write_filename_got_sig.append(signum) | 7f8dd863143d760693b9186ed756a001d2756557 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/7f8dd863143d760693b9186ed756a001d2756557/dbtables.py |
background_livetime[on_instruments].setdfault(key, 0) | background_livetime[on_instruments].setdefault(key, 0) | 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... | ce3500bebf02864a1a9953ea5df886bbd259572d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/ce3500bebf02864a1a9953ea5df886bbd259572d/farutils.py |
for offset_vector in self.offset_vectors: | for offset_vector in cafepacker.offset_vectors: | 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... | c783c0ac3f8680b2c401e5cffc416b579389f0a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c783c0ac3f8680b2c401e5cffc416b579389f0a8/ligolw_cafe.py |
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... | e9e5a10e9706a2981c26188d2ab4026bcf14d7e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e9e5a10e9706a2981c26188d2ab4026bcf14d7e1/makeCheckListWiki.py | |
stdin, out, err = os.popen3(command) pid, status = os.wait() if status != 0: | p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=isinstance(command, str)) out, err = p.communicate() if p.returncode != 0: | def make_external_call(command, show_stdout=False, show_command=False): """ Run a program on the shell and print informative messages on failure. """ if show_command: print command stdin, out, err = os.popen3(command) pid, status = os.wait() if status != 0: print >>sys.stderr, "External call failed." print >>sys.stde... | 79ded5e1e800a978bb85c465f48b4b83a8274ddb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/79ded5e1e800a978bb85c465f48b4b83a8274ddb/inspiralutils.py |
print >>sys.stderr, " status: %d" % status print >>sys.stderr, " stdout: %s" % out.read() print >>sys.stderr, " stderr: %s" % err.read() print >>sys.stderr, " command: %s" % command sys.exit(status) | print >>sys.stderr, " stdout: %s" % out print >>sys.stderr, " stderr: %s" % err raise subprocess.CalledProcessError(p.returncode, command) | def make_external_call(command, show_stdout=False, show_command=False): """ Run a program on the shell and print informative messages on failure. """ if show_command: print command stdin, out, err = os.popen3(command) pid, status = os.wait() if status != 0: print >>sys.stderr, "External call failed." print >>sys.stde... | 79ded5e1e800a978bb85c465f48b4b83a8274ddb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/79ded5e1e800a978bb85c465f48b4b83a8274ddb/inspiralutils.py |
print out.read() stdin.close() out.close() err.close() | print out | def make_external_call(command, show_stdout=False, show_command=False): """ Run a program on the shell and print informative messages on failure. """ if show_command: print command stdin, out, err = os.popen3(command) pid, status = os.wait() if status != 0: print >>sys.stderr, "External call failed." print >>sys.stde... | 79ded5e1e800a978bb85c465f48b4b83a8274ddb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/79ded5e1e800a978bb85c465f48b4b83a8274ddb/inspiralutils.py |
def gridsky(resolution): | def gridsky(resolution,shifted=False): | def gridsky(resolution): """ grid the sky up into roughly square regions resolution is the length of a side the points get placed at the center of the squares and to first order each square has an area of resolution^2 """ latitude = 0.0 longitude = pi ds = pi*resolution/180.0 points = [(latitude-0.5*pi, longitude)] whi... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
longitude = pi | longitude = 0.0 | def gridsky(resolution): """ grid the sky up into roughly square regions resolution is the length of a side the points get placed at the center of the squares and to first order each square has an area of resolution^2 """ latitude = 0.0 longitude = pi ds = pi*resolution/180.0 points = [(latitude-0.5*pi, longitude)] whi... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
points = [(latitude-0.5*pi, longitude)] | points = [] if shifted: dlat = 0.0 else: dlat = 0.5*pi | def gridsky(resolution): """ grid the sky up into roughly square regions resolution is the length of a side the points get placed at the center of the squares and to first order each square has an area of resolution^2 """ latitude = 0.0 longitude = pi ds = pi*resolution/180.0 points = [(latitude-0.5*pi, longitude)] whi... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
points.append((latitude-0.5*pi, longitude)) | points.append((latitude-dlat, longitude)) | def gridsky(resolution): """ grid the sky up into roughly square regions resolution is the length of a side the points get placed at the center of the squares and to first order each square has an area of resolution^2 """ latitude = 0.0 longitude = pi ds = pi*resolution/180.0 points = [(latitude-0.5*pi, longitude)] whi... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
points.append((latitude-0.5*pi, longitude)) | points.append((latitude-dlat, longitude)) points.append((0.0-dlat,0.0)) | def gridsky(resolution): """ grid the sky up into roughly square regions resolution is the length of a side the points get placed at the center of the squares and to first order each square has an area of resolution^2 """ latitude = 0.0 longitude = pi ds = pi*resolution/180.0 points = [(latitude-0.5*pi, longitude)] whi... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
if pt[0] > pi/2 or pt[0] < -pi/2 \ or pt[1] > 2*pi or pt[1] < 0: | if pt[0] > latmax or pt[0] < latmin or pt[1] > 2*pi or pt[1] < 0.0: | def gridsky(resolution): """ grid the sky up into roughly square regions resolution is the length of a side the points get placed at the center of the squares and to first order each square has an area of resolution^2 """ latitude = 0.0 longitude = pi ds = pi*resolution/180.0 points = [(latitude-0.5*pi, longitude)] whi... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
takes the two grids (lists of lat/lon tuples) and returns a dictionary | takes the two grids (lists of lat/lon tuples) and returns (1) a dictionary | 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 = {} ds = coarseres*pi/180.0 for cpt in coarsegr... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
points in the fine grid are the values | points in the fine grid are the values and (2) (for debugging purposes) returns a list of points in the fine grid that didn't make it NB: *** should work alright if the resolution isn't too coarse (because it uses the infinitesimal form of the metric); 5 is at the upper end of ok *** there is a fudge factor (epsilon) i... | 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 = {} ds = coarseres*pi/180.0 for cpt in coarsegr... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
if (cpt[0]-fpt[0])*(cpt[0]-fpt[0]) <= ds*ds/4.0 and \ (cpt[1]-fpt[1])*(cpt[1]-fpt[1])*sin(cpt[0])*sin(cpt[0]) \ <= ds*ds/4.0: | if (cpt[0]-fpt[0])*(cpt[0]-fpt[0])-ds*ds/4.0 <= epsilon and \ (cpt[1]-fpt[1])*(cpt[1]-fpt[1])*sin(cpt[0])*sin(cpt[0])-ds*ds/4.0 <= epsilon: | 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 = {} ds = coarseres*pi/180.0 for cpt in coarsegr... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py |
first_col = [pt for pt in coarsegrid if pt[1] == 0.0] for cpt in first_col: flist = [] for fpt in fgtemp: if (cpt[0]-fpt[0])*(cpt[0]-fpt[0])-ds*ds/4.0 <= epsilon and \ (2*pi-fpt[1])*(2*pi-fpt[1])*sin(cpt[0])*sin(cpt[0])-ds*ds/4.0 <= epsilon: coarsedict[cpt].append(fpt) flist.append(fpt) for rpt in flist: fgtemp.remove(... | 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 = {} ds = coarseres*pi/180.0 for cpt in coarsegr... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py | |
" --segment_url https://segdb.ligo.caltech.edu"+\ | " --segment-url https://segdb.ligo.caltech.edu"+\ | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py |
" --gps-start-time "+str(start)+\ " --gps-end-time "+str(end)+\ | " --gps-start-time "+str(int(start))+\ " --gps-end-time "+str(int(end))+\ | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py |
segs = GetCommandOutput(segment_cmd) | segs,status = GetCommandOutput(segment_cmd) | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py |
segs=segs.split('\n') for seg in segs: if seg=='': continue try: [seg_start,seg_end]=seg.split(' ') seglist.append(segment(int(seg_start),int(seg_end))) except: continue | if status==0: segs=segs.split('\n') for seg in segs: if seg=='': continue try: [seg_start,seg_end]=seg.split(' ') seglist.append(segment(int(seg_start),int(seg_end))) except: continue seglist = segmentlist(seglist) else: print >>sys.stderr, "Warning: Call to ligolw_segment_query failed with "+\ "command:" print >>sys... | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py |
seglist = segmentlist([seglist]) | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 3ff03be0c8cc77ecae9200efb1d883d6c9166fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/3ff03be0c8cc77ecae9200efb1d883d6c9166fdc/dqSegmentUtils.py | |
try: cPickle.dump(self.__backgroundDict__,file(pickleLocale,'w')) except: sys.stdout.write("Problem saving pickle of DQ information.") sys.stdout.write("Trying to place pickle in your home directory.") | if not backgroundPickle: | def createDQbackground(self,ifoEpochList=list(),pickleLocale=None): """ Two inputs a list of tuples (ifo,epochname) for each instrument. Also a place to save the potential pickle to for quick access later. """ if type(ifoEpochList) != type(list()): raise Exception, \ "Invalid input argument ifoEpochList,%s type(%s)"... | 6dd8d677924d136a0f3b5fb060f859178f7cc82c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6dd8d677924d136a0f3b5fb060f859178f7cc82c/fu_utils.py |
cPickle.dump(self.__backgroundDict__, file(home_dir()+"/"+os.path.basename(pickleLocale),'w')) | cPickle.dump(self.__backgroundDict__,file(pickleLocale,'w')) | def createDQbackground(self,ifoEpochList=list(),pickleLocale=None): """ Two inputs a list of tuples (ifo,epochname) for each instrument. Also a place to save the potential pickle to for quick access later. """ if type(ifoEpochList) != type(list()): raise Exception, \ "Invalid input argument ifoEpochList,%s type(%s)"... | 6dd8d677924d136a0f3b5fb060f859178f7cc82c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6dd8d677924d136a0f3b5fb060f859178f7cc82c/fu_utils.py |
sys.stdout.write("Really ignoring pickle generation now!\n") | sys.stdout.write("Problem saving pickle of DQ information.") sys.stdout.write("Trying to place pickle in your home directory.") try: cPickle.dump(self.__backgroundDict__, file(home_dir()+"/"+os.path.basename(pickleLocale),'w')) except: sys.stdout.write("Really ignoring pickle generation now!\n") | def createDQbackground(self,ifoEpochList=list(),pickleLocale=None): """ Two inputs a list of tuples (ifo,epochname) for each instrument. Also a place to save the potential pickle to for quick access later. """ if type(ifoEpochList) != type(list()): raise Exception, \ "Invalid input argument ifoEpochList,%s type(%s)"... | 6dd8d677924d136a0f3b5fb060f859178f7cc82c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/6dd8d677924d136a0f3b5fb060f859178f7cc82c/fu_utils.py |
def insert(connection, urls, preserve_ids = False, verbose = False): | def insert_from_urls(connection, urls, preserve_ids = False, verbose = False): | def insert(connection, urls, preserve_ids = False, verbose = False): """ Iterate over a sequence of URLs and parse and insert each one into the database the dbtables.DBTable class is currently connected to. """ if not preserve_ids: # enable ID remapping dbtables.idmap_create(connection) dbtables.DBTable.append = dbtabl... | 50dc3e487cb3a2bfe02787ec6f9e175a28daafe5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/50dc3e487cb3a2bfe02787ec6f9e175a28daafe5/ligolw_sqlite.py |
table_elems = xmldoc.getElementsByTagName(ligolw.Table.tagName) for tbl in table_elems: | for tbl in xmldoc.getElementsByTagName(ligolw.Table.tagName): | def insert_from_xmldoc(connection, xmldoc, preserve_ids = False, verbose = False): """ Insert the tables from an in-ram XML document into the database at the given connection. """ if not preserve_ids: # enable ID remapping dbtables.idmap_create(connection) dbtables.DBTable.append = dbtables.DBTable._remapping_append el... | 50dc3e487cb3a2bfe02787ec6f9e175a28daafe5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/50dc3e487cb3a2bfe02787ec6f9e175a28daafe5/ligolw_sqlite.py |
for n, (coinc_event_id, time_slide_id) in enumerate(database.connection.cursor().execute("SELECT coinc_event_id, time_slide_id FROM coinc_event WHERE coinc_def_id == ?", (database.bb_definer_id,))): if verbose and not n % 200: print >>sys.stderr, "\t%.1f%%\r" % (100.0 * n / n_coincs), events = map(database.sngl_burst... | def get_likelihood_ratio(coinc_event_id, time_slide_id, row_from_cols = database.sngl_burst_table.row_from_cols, cursor = cursor, time_slides = time_slides, params_func = params_func, params_func_extra_args = params_func_extra_args): events = map(row_from_cols, cursor.execute("""SELECT * FROM coinc_burst_map WHERE coi... | def ligolw_burca2(database, likelihood_ratio, params_func, verbose = False, params_func_extra_args = ()): """ Assigns likelihood ratio values to excess power coincidences. database is pylal.SnglBurstUtils.CoincDatabase instance, and likelihood_ratio is a LikelihoodRatio class instance. """ # # Find document parts. # t... | 9f53ea4d76a94a23ce55054885f31fd96d4b31a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/9f53ea4d76a94a23ce55054885f31fd96d4b31a4/ligolw_burca2.py |
likelihood = ? | likelihood = likelihood_ratio(coinc_event_id, time_slide_id) | def ligolw_burca2(database, likelihood_ratio, params_func, verbose = False, params_func_extra_args = ()): """ Assigns likelihood ratio values to excess power coincidences. database is pylal.SnglBurstUtils.CoincDatabase instance, and likelihood_ratio is a LikelihoodRatio class instance. """ # # Find document parts. # t... | 9f53ea4d76a94a23ce55054885f31fd96d4b31a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/9f53ea4d76a94a23ce55054885f31fd96d4b31a4/ligolw_burca2.py |
coinc_event_id == ? """, (likelihood_ratio(params_func, events, time_slides[time_slide_id], *params_func_extra_args), coinc_event_id)) | coinc_def_id == ? """, (database.bb_definer_id,)) | def ligolw_burca2(database, likelihood_ratio, params_func, verbose = False, params_func_extra_args = ()): """ Assigns likelihood ratio values to excess power coincidences. database is pylal.SnglBurstUtils.CoincDatabase instance, and likelihood_ratio is a LikelihoodRatio class instance. """ # # Find document parts. # t... | 9f53ea4d76a94a23ce55054885f31fd96d4b31a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/9f53ea4d76a94a23ce55054885f31fd96d4b31a4/ligolw_burca2.py |
"ISI-OMC_DISPPF_H1_IN1_DAQ",\ "PEM-LVEA2_V2",\ "OMC-ASC_POS_X_IN1_DAQ",\ "OMC-ASC_POS_Y_IN1_DAQ",\ "OMC-QPD3_SUM_IN1_DAQ",\ "OMC-QPD1_SUM_IN1_DAQ",\ "OMC-QPD2_SUM_IN1_DAQ",\ "OMC-QPD4_SUM_IN1_DAQ"\ | "XX:ISI-OMC_DISPPF_H1_IN1_DAQ",\ "XX:PEM-LVEA2_V2",\ "XX:OMC-ASC_POS_X_IN1_DAQ",\ "XX:OMC-ASC_POS_Y_IN1_DAQ",\ "XX:OMC-QPD3_SUM_IN1_DAQ",\ "XX:OMC-QPD1_SUM_IN1_DAQ",\ "XX:OMC-QPD2_SUM_IN1_DAQ",\ "XX:OMC-QPD4_SUM_IN1_DAQ"\ | def __filenameToChannelList__(self,filenameList=[]): """ This method attempts to construct a set of simplified channel names based of a list of image filenames. """ #Parsed filename channel list specialChannelList=[ "ISI-OMC_DISPPF_H1_IN1_DAQ",\ "PEM-LVEA2_V2",\ "OMC-ASC_POS_X_IN1_DAQ",\ "OMC-ASC_POS_Y_IN1_DAQ",\ "OMC-... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
return [str(x).strip() for x in finalChannelList] | return ["XX:"+str(x).strip() for x in finalChannelList] | def __filenameToChannelList__(self,filenameList=[]): """ This method attempts to construct a set of simplified channel names based of a list of image filenames. """ #Parsed filename channel list specialChannelList=[ "ISI-OMC_DISPPF_H1_IN1_DAQ",\ "PEM-LVEA2_V2",\ "OMC-ASC_POS_X_IN1_DAQ",\ "OMC-ASC_POS_Y_IN1_DAQ",\ "OMC-... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
imageDict=dict() indexDict=dict() thumbDict=dict() zValueDict=dict() imageDictAQ=dict() indexDictAQ=dict() thumbDictAQ=dict() zValueDictAQ=dict() | imageDict,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() filesOmega=wikiFileFinder.get_RDS_R_L1_SEIS() filesAnalyze=wikiFileFinder.get_analyzeQscan_SEIS() | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
indexDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ | indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() indexDict[sngl.ifo]=fnmatch.filter(filesOmega,\ | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
imageDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ | imageDict[sngl.ifo]=fnmatch.filter(filesOmega,\ | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
thumbDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ | thumbDict[sngl.ifo]=fnmatch.filter(filesOmega,\ | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
zValueFiles=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ "*/%s_RDS_*/%s/*summary.txt"%(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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py | |
if (len(zValueFiles) > 0): for zFile in zValueFiles: zValueDict[sngl.ifo].extend(wikiFileFinder.__readSummary__(zFile)) tmpList=list() for chan in zValueDict[sngl.ifo]: | for zFile in fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo) | zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py | ||
zValueFiles=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ "*_%s_%s_*.txt"%(sngl.ifo,timeString)) indexDictAQ[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ | indexDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
thumbDictAQ[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ | imageDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_SEI*_z_scat-unspecified-gpstime.png"\ %(sngl.ifo,timeString)) thumbDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ | 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... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.