Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
7ca14952
Commit
7ca14952
authored
5 years ago
by
Shanika Galaudage
Browse files
Options
Downloads
Patches
Plain Diff
edit more parameter names
parent
b4a00450
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!678
Fix ROQ scaling checks
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/gw/likelihood.py
+6
-6
6 additions, 6 deletions
bilby/gw/likelihood.py
with
6 additions
and
6 deletions
bilby/gw/likelihood.py
+
6
−
6
View file @
7ca14952
...
...
@@ -1077,14 +1077,14 @@ class ROQGravitationalWaveTransient(GravitationalWaveTransient):
if
self
.
roq_params
is
not
None
:
self
.
perform_roq_params_check
(
ifo
)
# Get scaled ROQ quantities
roq_scaled_
fhigh
=
self
.
roq_params
[
'
f
high
'
]
*
self
.
roq_scale_factor
roq_scaled_
seglen
=
self
.
roq_params
[
'
seglen
'
]
*
self
.
roq_scale_factor
roq_scaled_
flow
=
self
.
roq_params
[
'
flow
'
]
*
self
.
roq_scale_factor
roq_scaled_
minimum_frequency
=
self
.
roq_params
[
'
f
low
'
]
*
self
.
roq_scale_factor
roq_scaled_
maximum_frequency
=
self
.
roq_params
[
'
fhigh
'
]
*
self
.
roq_scale_factor
roq_scaled_
segment_length
=
self
.
roq_params
[
'
seglen
'
]
*
self
.
roq_scale_factor
# Generate frequencies for the ROQ
roq_frequencies
=
create_frequency_series
(
sampling_frequency
=
roq_scaled_
fhigh
*
2
,
duration
=
roq_scaled_seg
len
)
roq_mask
=
roq_frequencies
>=
roq_scaled_
flow
sampling_frequency
=
roq_scaled_
maximum_frequency
*
2
,
duration
=
roq_scaled_seg
ment_length
)
roq_mask
=
roq_frequencies
>=
roq_scaled_
minimum_frequency
roq_frequencies
=
roq_frequencies
[
roq_mask
]
overlap_frequencies
,
ifo_idxs
,
roq_idxs
=
np
.
intersect1d
(
ifo
.
frequency_array
[
ifo
.
frequency_mask
],
roq_frequencies
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment