|
gstlal 1.13.0
|
Go to the source code of this file.
Classes | |
| class | python.dagparts.DAG |
| A thin subclass of pipeline.CondorDAG. More... | |
| class | python.dagparts.DAGJob |
| A job class that subclasses pipeline.CondorDAGJob and adds some extra boiler plate items for gstlal jobs which tends to do the "right" thing when given just an executable name. More... | |
| class | python.dagparts.DAGNode |
| A node class that subclasses pipeline.CondorDAGNode that automates adding the node to the dag, makes sensible names and allows a list of parent nodes to be provided. More... | |
Functions | |
| python.dagparts.which (prog) | |
| python.dagparts.condor_scratch_space () | |
| A way to standardize the condor scratch space even if it changes. | |
| python.dagparts.log_path () | |
| The stupid pet tricks to find log space on the LDG. | |
| python.dagparts.condor_command_dict_from_opts (opts, defaultdict=None) | |
| A function to turn a list of options into a dictionary of condor commands, e.g.,. | |
| python.dagparts.pipeline_dot_py_append_opts_hack (opt, vals) | |
| A way to work around the dictionary nature of pipeline.py which can only record options once. | |
| python.dagparts.breakupseg (seg, maxextent, overlap) | |
| python.dagparts.breakupsegs (seglist, maxextent, overlap) | |
| python.dagparts.breakupseglists (seglists, maxextent, overlap) | |
| python.dagparts.cache_to_instruments (cache) | |
| Given a cache, returns back a string containing all the IFOs that are contained in each of its cache entries, sorted by IFO name. | |
| python.dagparts.T050017_filename (instruments, description, seg, extension, path=None) | |
| A function to generate a T050017 filename. | |
| python.dagparts.group_T050017_filename_from_T050017_files (cache_entries, extension, path=None) | |
| A function to return the name of a file created from multiple files following the T050017 convention. | |
| python.dagparts.groups (l, n) | |
| Given a list, returns back sublists with a maximum size n. | |
| python.dagparts.flatten (lst) | |
| Flatten a list by one level of nesting. | |
| breakupseg | ( | seg, | |
| maxextent, | |||
| overlap ) |
Definition at line 313 of file dagparts.py.
| breakupseglists | ( | seglists, | |
| maxextent, | |||
| overlap ) |
Definition at line 347 of file dagparts.py.
| breakupsegs | ( | seglist, | |
| maxextent, | |||
| overlap ) |
Definition at line 340 of file dagparts.py.
| cache_to_instruments | ( | cache | ) |
Given a cache, returns back a string containing all the IFOs that are contained in each of its cache entries, sorted by IFO name.
Definition at line 364 of file dagparts.py.
| condor_command_dict_from_opts | ( | opts, | |
| defaultdict = None ) |
A function to turn a list of options into a dictionary of condor commands, e.g.,.
condor_command_dict_from_opts(["+Online_CBC_SVD=True", "TARGET.Online_CBC_SVD =?= True"]) {'+Online_CBC_SVD': 'True', 'TARGET.Online_CBC_SVD ': '?= True'} condor_command_dict_from_opts(["+Online_CBC_SVD=True", "TARGET.Online_CBC_SVD =?= True"], {"somecommand":"somevalue"}) {'somecommand': 'somevalue', '+Online_CBC_SVD': 'True', 'TARGET.Online_CBC_SVD ': '?= True'} condor_command_dict_from_opts(["+Online_CBC_SVD=True", "TARGET.Online_CBC_SVD =?= True"], {"+Online_CBC_SVD":"False"}) {'+Online_CBC_SVD': 'True', 'TARGET.Online_CBC_SVD ': '?= True'}
Definition at line 268 of file dagparts.py.
| condor_scratch_space | ( | ) |
A way to standardize the condor scratch space even if it changes.
condor_scratch_space() '_CONDOR_SCRATCH_DIR'
Definition at line 82 of file dagparts.py.
| flatten | ( | lst | ) |
Flatten a list by one level of nesting.
Definition at line 455 of file dagparts.py.
| group_T050017_filename_from_T050017_files | ( | cache_entries, | |
| extension, | |||
| path = None ) |
A function to return the name of a file created from multiple files following the T050017 convention.
In addition to the T050017 requirements, this assumes that numbers relevant to organization schemes will be the first entry in the description, e.g. 0_DIST_STATS, and that all files in a given cache file are from the same group of ifos and either contain data from the same segment or from the same background bin. Note, that each file doesn't have to be from the same IFO, for example the template bank cache could contain template bank files from H1 and template bank files from L1.
Definition at line 395 of file dagparts.py.
| groups | ( | l, | |
| n ) |
Given a list, returns back sublists with a maximum size n.
Definition at line 447 of file dagparts.py.
| log_path | ( | ) |
The stupid pet tricks to find log space on the LDG.
Defaults to checking TMPDIR first.
Definition at line 91 of file dagparts.py.
| pipeline_dot_py_append_opts_hack | ( | opt, | |
| vals ) |
A way to work around the dictionary nature of pipeline.py which can only record options once.
pipeline_dot_py_append_opts_hack("my-favorite-option", [1,2,3]) '1 –my-favorite-option 2 –my-favorite-option 3'
Definition at line 290 of file dagparts.py.
| T050017_filename | ( | instruments, | |
| description, | |||
| seg, | |||
| extension, | |||
| path = None ) |
A function to generate a T050017 filename.
Definition at line 375 of file dagparts.py.
| which | ( | prog | ) |
Definition at line 74 of file dagparts.py.