Commit 5fe20fa3 authored by Kipp Cannon's avatar Kipp Cannon

lalburst: rename ligolw_burca_tailor --> burca_tailor

Original: a0b5310205cfe0c2020c40d261f908c9a0f35dbe
parent 067e495b
......@@ -35,7 +35,7 @@ from lal.utils import CacheEntry
from glue import segments
from glue.ligolw import dbtables
from glue.ligolw import utils
from lalburst import ligolw_burca_tailor
from lalburst import burca_tailor
from lalburst import SnglBurstUtils
from lalburst.SimBurstUtils import MW_CENTER_J2000_RA_RAD, MW_CENTER_J2000_DEC_RAD
from lalburst import git_version
......@@ -110,7 +110,7 @@ options, filenames = parse_command_line()
#
distributions = ligolw_burca_tailor.EPGalacticCoreCoincParamsDistributions()
distributions = burca_tailor.EPGalacticCoreCoincParamsDistributions()
segs = segments.segmentlistdict()
......@@ -120,7 +120,7 @@ segs = segments.segmentlistdict()
if options.add_from:
c, s = distributions.from_filenames(options.add_from, u"ligolw_burca_tailor", verbose = options.verbose)
c, s = distributions.from_filenames(options.add_from, u"lalapps_burca_tailor", verbose = options.verbose)
distributions += c
segs |= s
del c
......@@ -161,7 +161,7 @@ for n, filename in enumerate(filenames):
if database.sim_burst_table is None:
# iterate over burst<-->burst coincs
for is_background, events, offsetvector in ligolw_burca_tailor.get_noninjections(database):
for is_background, events, offsetvector in burca_tailor.get_noninjections(database):
params = distributions.coinc_params(events, offsetvector, MW_CENTER_J2000_RA_RAD, MW_CENTER_J2000_DEC_RAD)
if params is not None:
if is_background:
......@@ -171,7 +171,7 @@ for n, filename in enumerate(filenames):
else:
# iterate over burst<-->burst coincs matching injections
# "exactly"
for sim, events, offsetvector in ligolw_burca_tailor.get_injections(database):
for sim, events, offsetvector in burca_tailor.get_injections(database):
params = distributions.coinc_params(events, offsetvector, MW_CENTER_J2000_RA_RAD, MW_CENTER_J2000_DEC_RAD)
if params is not None:
distributions.add_injection(params)
......@@ -200,5 +200,5 @@ else:
filename = options.output
xmldoc = ligolw_burca_tailor.gen_likelihood_control(distributions, segs)
xmldoc = burca_tailor.gen_likelihood_control(distributions, segs)
utils.write_filename(xmldoc, filename, verbose = options.verbose, gz = (filename or "stdout").endswith(".gz"))
......@@ -33,7 +33,7 @@ import sqlite3
from glue.ligolw import dbtables
from lal.utils import CacheEntry
from lalburst import git_version
from lalburst import ligolw_burca_tailor
from lalburst import burca_tailor
from lalburst import ligolw_burca2
from lalburst import SnglBurstUtils
from pylal import snglcoinc
......@@ -114,7 +114,7 @@ options, filenames = parse_command_line()
def load_likelihood_data(filenames, verbose = False):
distributions, ignored = ligolw_burca_tailor.EPGalacticCoreCoincParamsDistributions.from_filenames(filenames, u"ligolw_burca_tailor", verbose = verbose)
distributions, ignored = burca_tailor.EPGalacticCoreCoincParamsDistributions.from_filenames(filenames, u"lalapps_burca_tailor", verbose = verbose)
distributions.finish()
return distributions
......
......@@ -39,7 +39,7 @@ import sys
from lalburst import git_version
from lalburst import ligolw_burca_tailor
from lalburst import burca_tailor
from lalburst import SnglBurstUtils
......@@ -138,7 +138,7 @@ def add_to_dtplot(axes, red, black, blue, gmst, plottype = "LR"):
#
# distributions is a ligolw_burca_tailor.BurcaCoincParamsDistributions instance
# distributions is a burca_tailor.BurcaCoincParamsDistributions instance
#
......@@ -259,7 +259,7 @@ options, filenames = parse_command_line()
filenames.sort()
distributions, seglists = ligolw_burca_tailor.EPGalacticCoreCoincParamsDistributions.from_filenames(filenames, u"ligolw_burca_tailor", verbose = options.verbose)
distributions, seglists = burca_tailor.EPGalacticCoreCoincParamsDistributions.from_filenames(filenames, u"lalapps_burca_tailor", verbose = options.verbose)
if options.verbose:
print >>sys.stderr, "applying filters ..."
distributions.finish()
......
......@@ -34,7 +34,7 @@ from glue import lal
from glue import segments
from glue.ligolw import utils as ligolw_utils
from lalburst import git_version
from lalburst import ligolw_burca_tailor
from lalburst import burca_tailor
from lalburst import stringutils
......@@ -109,4 +109,4 @@ coincparamsdistributions.finish(filters = stringutils.DistributionsStats.filters
#
ligolw_utils.write_filename(ligolw_burca_tailor.gen_likelihood_control(coincparamsdistributions, seglists, name = u"string_cusp_likelihood"), options.output, verbose = options.verbose, gz = (options.output or "stdout").endswith(".gz"))
ligolw_utils.write_filename(burca_tailor.gen_likelihood_control(coincparamsdistributions, seglists, name = u"string_cusp_likelihood"), options.output, verbose = options.verbose, gz = (options.output or "stdout").endswith(".gz"))
......@@ -40,7 +40,7 @@ from glue.ligolw import utils
from glue.ligolw.utils import process as ligolwprocess
from lalburst import SnglBurstUtils
from lalburst import git_version
from lalburst import ligolw_burca_tailor
from lalburst import burca_tailor
from lalburst import stringutils
......@@ -208,7 +208,7 @@ for n, filename in enumerate(filenames):
if contents.sim_burst_table is None:
# iterate over burst<-->burst coincs
for is_background, events, offsetvector in ligolw_burca_tailor.get_noninjections(contents):
for is_background, events, offsetvector in burca_tailor.get_noninjections(contents):
params = distributions.coinc_params([event for event in events if event.ifo not in contents.vetoseglists or event.peak not in contents.vetoseglists[event.ifo]], offsetvector, triangulators)
if params is not None:
if is_background:
......@@ -219,7 +219,7 @@ for n, filename in enumerate(filenames):
weight_func = get_injection_weight_func(contents, options.injection_reweight, options.injection_reweight_cutoff)
# iterate over burst<-->burst coincs matching injections
# "exactly"
for sim, events, offsetvector in ligolw_burca_tailor.get_injections(contents):
for sim, events, offsetvector in burca_tailor.get_injections(contents):
params = distributions.coinc_params([event for event in events if event.ifo not in contents.vetoseglists or event.peak not in contents.vetoseglists[event.ifo]], offsetvector, triangulators)
if params is not None:
distributions.add_injection(params, weight = weight_func(sim))
......
......@@ -15,11 +15,11 @@ pymodule_PYTHON = \
binjfind.py \
bucluster.py \
burca.py \
burca_tailor.py \
cafe.py \
date.py \
git_version.py \
ligolw_burca2.py \
ligolw_burca_tailor.py \
packing.py \
SimBurstUtils.py \
SnglBurstUtils.py \
......
......@@ -398,7 +398,7 @@ WHERE
process_program_name = "lalapps_burca_tailor"
def gen_likelihood_control(coinc_params_distributions, seglists, name = u"ligolw_burca_tailor", comment = u""):
def gen_likelihood_control(coinc_params_distributions, seglists, name = u"lalapps_burca_tailor", comment = u""):
xmldoc = ligolw.Document()
node = xmldoc.appendChild(ligolw.LIGO_LW())
......
......@@ -38,7 +38,7 @@ from glue.ligolw import lsctables
from glue.ligolw import utils
from glue.ligolw.utils import process as ligolw_process
from glue.offsetvector import offsetvector
from . import ligolw_burca_tailor
from . import burca_tailor
from . import git_version
from pylal import rate
from pylal import snglcoinc
......@@ -334,7 +334,7 @@ def load_likelihood_data(filenames, verbose = False):
def write_likelihood_data(filename, coincparamsdistributions, seglists, verbose = False):
utils.write_filename(ligolw_burca_tailor.gen_likelihood_control(coincparamsdistributions, seglists, name = u"string_cusp_likelihood"), filename, verbose = verbose, gz = (filename or "stdout").endswith(".gz"))
utils.write_filename(burca_tailor.gen_likelihood_control(coincparamsdistributions, seglists, name = u"string_cusp_likelihood"), filename, verbose = verbose, gz = (filename or "stdout").endswith(".gz"))
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment