Skip to content
Snippets Groups Projects
Commit fab532a7 authored by Patrick Godwin's avatar Patrick Godwin Committed by Patrick Godwin
Browse files

fix undefined variable errors

parent 9741fbe4
No related branches found
No related tags found
1 merge request!122Assorted fixes
This commit is part of merge request !122. Comments created here will be created in the context of that merge request.
......@@ -40,7 +40,7 @@ split_bank = DataCache.find(DataType.SPLIT_BANK, svd_bins="*", subtype="*")
ref_psd = DataCache.from_files(DataType.REFERENCE_PSD, config.data.reference_psd)
# generate dag layers
svd_bank = dag.svd_bank(reference_psd, split_bank)
svd_bank = dag.svd_bank(ref_psd, split_bank)
# write dag/script to disk
dag_name = "svd_bank_dag"
......
......@@ -1024,7 +1024,7 @@ class LLOIDTracker:
if self.rankingstatpdf_url is not None and os.access(ligolw_utils.local_path_from_url(self.rankingstatpdf_url), os.R_OK):
_, self.rankingstatpdf = far.parse_likelihood_control_doc(ligolw_utils.load_url(self.rankingstatpdf_url, verbose = self.verbose, contenthandler = far.RankingStat.LIGOLWContentHandler))
if self.rankingstatpdf is None:
raise ValueError("\"%s\" does not contain ranking statistic PDFs" % url)
raise ValueError("\"%s\" does not contain ranking statistic PDFs" % self.rankingstatpdf_url)
if not self.rankingstat.template_ids <= self.rankingstatpdf.template_ids:
raise ValueError("\"%s\" is for the wrong templates")
if self.rankingstatpdf.is_healthy(self.verbose):
......
......@@ -217,7 +217,6 @@ class HorizonDistance:
def _load_files(files):
return files
def _load_cachces(caches):
def _load_caches(caches):
urls = (CacheEntry(line).url for cache in caches for line in open(cache))
return sorted(urls, key = lambda x: CacheEntry.from_T050017(x).description)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment