Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
lalsuite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
106
Issues
106
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
26
Merge Requests
26
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
lalsuite
Commits
87f2a0e0
Commit
87f2a0e0
authored
Feb 10, 2017
by
Kipp Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lalburst: rename ligolw_burca --> burca
Original: 44690e36580a0b4bf85baeb3ed4dcef37f062824
parent
4554a3c3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
lalapps/src/power/lalapps_burca.py
lalapps/src/power/lalapps_burca.py
+14
-14
lalburst/python/lalburst/Makefile.am
lalburst/python/lalburst/Makefile.am
+1
-1
lalburst/python/lalburst/binjfind.py
lalburst/python/lalburst/binjfind.py
+3
-3
lalburst/python/lalburst/burca.py
lalburst/python/lalburst/burca.py
+2
-2
lalburst/python/lalburst/stringutils.py
lalburst/python/lalburst/stringutils.py
+2
-2
No files found.
lalapps/src/power/lalapps_burca.py
View file @
87f2a0e0
...
...
@@ -36,7 +36,7 @@ from glue.ligolw import lsctables
from
glue.ligolw
import
utils
from
glue.ligolw.utils
import
process
as
ligolw_process
from
lalburst
import
git_version
from
lalburst
import
ligolw_
burca
from
lalburst
import
burca
from
pylal
import
snglcoinc
...
...
@@ -235,23 +235,23 @@ if options.coinc_segs is not None:
if
options
.
coincidence_algorithm
==
"excesspower"
:
EventListType
=
ligolw_
burca
.
ExcessPowerEventList
comparefunc
=
ligolw_
burca
.
ExcessPowerCoincCompare
EventListType
=
burca
.
ExcessPowerEventList
comparefunc
=
burca
.
ExcessPowerCoincCompare
if
options
.
coinc_segs
is
not
None
:
ntuple_comparefunc
=
coinc_segs_ntuple_comparefunc
else
:
ntuple_comparefunc
=
lambda
*
args
:
False
# keep everything
CoincTables
=
ligolw_
burca
.
ExcessPowerCoincTables
CoincDef
=
ligolw_
burca
.
ExcessPowerBBCoincDef
CoincTables
=
burca
.
ExcessPowerCoincTables
CoincDef
=
burca
.
ExcessPowerBBCoincDef
elif
options
.
coincidence_algorithm
==
"stringcusp"
:
EventListType
=
ligolw_
burca
.
StringEventList
comparefunc
=
ligolw_
burca
.
StringCoincCompare
EventListType
=
burca
.
StringEventList
comparefunc
=
burca
.
StringCoincCompare
if
options
.
coinc_segs
is
not
None
:
ntuple_comparefunc
=
lambda
*
args
:
coinc_segs_ntuple_comparefunc
(
*
args
)
or
ligolw_
burca
.
StringNTupleCoincCompare
(
*
args
)
ntuple_comparefunc
=
lambda
*
args
:
coinc_segs_ntuple_comparefunc
(
*
args
)
or
burca
.
StringNTupleCoincCompare
(
*
args
)
else
:
ntuple_comparefunc
=
ligolw_
burca
.
StringNTupleCoincCompare
CoincTables
=
ligolw_
burca
.
StringCuspCoincTables
CoincDef
=
ligolw_
burca
.
StringCuspBBCoincDef
ntuple_comparefunc
=
burca
.
StringNTupleCoincCompare
CoincTables
=
burca
.
StringCuspCoincTables
CoincDef
=
burca
.
StringCuspBBCoincDef
else
:
raise
Exception
(
"should never get here"
)
...
...
@@ -275,7 +275,7 @@ for n, filename in enumerate(filenames):
# Have we already processed it?
#
if
ligolw_process
.
doc_includes_process
(
xmldoc
,
ligolw_
burca
.
process_program_name
):
if
ligolw_process
.
doc_includes_process
(
xmldoc
,
burca
.
process_program_name
):
if
options
.
verbose
:
print
>>
sys
.
stderr
,
"warning: %s already processed,"
%
(
filename
or
"stdin"
),
if
not
options
.
force
:
...
...
@@ -289,13 +289,13 @@ for n, filename in enumerate(filenames):
# Add an entry to the process table.
#
process
=
ligolw_
burca
.
append_process
(
xmldoc
,
**
options
.
__dict__
)
process
=
burca
.
append_process
(
xmldoc
,
**
options
.
__dict__
)
#
# Run coincidence algorithm.
#
ligolw_burca
.
ligolw_
burca
(
burca
.
burca
(
xmldoc
=
xmldoc
,
process_id
=
process
.
process_id
,
EventListType
=
EventListType
,
...
...
lalburst/python/lalburst/Makefile.am
View file @
87f2a0e0
...
...
@@ -14,10 +14,10 @@ pymodule_PYTHON = \
__init__.py
\
binjfind.py
\
bucluster.py
\
burca.py
\
cafe.py
\
date.py
\
git_version.py
\
ligolw_burca.py
\
ligolw_burca2.py
\
ligolw_burca_tailor.py
\
packing.py
\
...
...
lalburst/python/lalburst/binjfind.py
View file @
87f2a0e0
...
...
@@ -48,7 +48,7 @@ from glue.ligolw.utils import process as ligolw_process
from
glue.ligolw.utils
import
search_summary
as
ligolw_search_summary
from
glue.ligolw.utils
import
time_slide
as
ligolw_time_slide
from
.
import
git_version
from
.
import
ligolw_
burca
from
.
import
burca
from
.
import
SimBurstUtils
...
...
@@ -602,8 +602,8 @@ def binjfind(xmldoc, process, search, snglcomparefunc, nearcoinccomparefunc, ver
print
>>
sys
.
stderr
,
"indexing ..."
b_b_def
=
{
"StringCusp"
:
ligolw_
burca
.
StringCuspBBCoincDef
,
"excesspower"
:
ligolw_
burca
.
ExcessPowerBBCoincDef
,
"StringCusp"
:
burca
.
StringCuspBBCoincDef
,
"excesspower"
:
burca
.
ExcessPowerBBCoincDef
,
"waveburst"
:
CWBBBCoincDef
,
"omega"
:
OmegaBBCoincDef
}[
search
]
...
...
lalburst/python/lalburst/
ligolw_
burca.py
→
lalburst/python/lalburst/burca.py
View file @
87f2a0e0
...
...
@@ -67,7 +67,7 @@ lsctables.SnglBurst.__cmp__ = sngl_burst___cmp__
#
process_program_name
=
"l
igolw
_burca"
process_program_name
=
"l
alapps
_burca"
def
append_process
(
xmldoc
,
comment
=
None
,
**
kwargs
):
...
...
@@ -342,7 +342,7 @@ def StringNTupleCoincCompare(events, offset_vector):
#
def
ligolw_
burca
(
def
burca
(
xmldoc
,
process_id
,
EventListType
,
...
...
lalburst/python/lalburst/stringutils.py
View file @
87f2a0e0
...
...
@@ -260,9 +260,9 @@ class StringCoincParamsDistributions(snglcoinc.CoincParamsDistributions):
orig_peak_times
[
event
]
=
event
.
peak
# parse the --thresholds H1,L1=... command-line options from burca
delta_t
=
[
float
(
threshold
.
split
(
"="
)[
-
1
])
for
threshold
in
ligolw_process
.
get_process_params
(
database
.
xmldoc
,
"l
igolw
_burca"
,
"--thresholds"
)]
delta_t
=
[
float
(
threshold
.
split
(
"="
)[
-
1
])
for
threshold
in
ligolw_process
.
get_process_params
(
database
.
xmldoc
,
"l
alapps
_burca"
,
"--thresholds"
)]
if
not
all
(
delta_t
[
0
]
==
threshold
for
threshold
in
delta_t
[
1
:]):
raise
ValueError
(
"\Delta t is not unique in l
igolw
_burca arguments"
)
raise
ValueError
(
"\Delta t is not unique in l
alapps
_burca arguments"
)
delta_t
=
delta_t
.
pop
()
# construct the coinc generator. note that H1+H2-only
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment