Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
L
lalsuite
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
lalsuite
Commits
047c5954
Commit
047c5954
authored
Jul 02, 2019
by
Soichiro Morisaki
Committed by
Adam Mercer
Jul 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lalinference_pipe_utils.py: do not assume the roq directory name is seglen
(cherry picked from commit
2184ad36
)
parent
b0c9249a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
lalinference/python/lalinference/lalinference_pipe_utils.py
lalinference/python/lalinference/lalinference_pipe_utils.py
+2
-6
No files found.
lalinference/python/lalinference/lalinference_pipe_utils.py
View file @
047c5954
...
...
@@ -657,12 +657,8 @@ def get_roq_component_mass_priors(path, roq_paths, roq_params, key, coinc_xml_ob
return
m1_priors
,
m2_priors
,
trigger_mchirp
def
get_roq_mass_freq_scale_factor
(
mc_priors
,
trigger_mchirp
,
force_flow
=
None
):
mc_priors_keys_list
=
list
(
mc_priors
.
keys
())
mc_priors_keys_int
=
[
int
(
seglen
[:
-
1
])
for
seglen
in
mc_priors_keys_list
]
roq_min
=
mc_priors_keys_list
[
np
.
argmin
(
mc_priors_keys_int
)]
roq_max
=
mc_priors_keys_list
[
np
.
argmax
(
mc_priors_keys_int
)]
mc_max
=
mc_priors
[
roq_min
][
1
]
mc_min
=
mc_priors
[
roq_max
][
0
]
mc_min
=
min
([
prange
[
0
]
for
prange
in
mc_priors
.
values
()])
mc_max
=
max
([
prange
[
1
]
for
prange
in
mc_priors
.
values
()])
scale_factor
=
1.
if
force_flow
==
None
and
trigger_mchirp
!=
None
:
if
trigger_mchirp
>=
mc_max
:
...
...
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