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
f4554d1c
Commit
f4554d1c
authored
5 years ago
by
Sylvia Biscoveanu
Committed by
Moritz Huebner
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix frequencies
parent
7899375f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/gw/detector/strain_data.py
+6
-4
6 additions, 4 deletions
bilby/gw/detector/strain_data.py
with
6 additions
and
4 deletions
bilby/gw/detector/strain_data.py
+
6
−
4
View file @
f4554d1c
...
...
@@ -41,6 +41,8 @@ class InterferometerStrainData(object):
This corresponds to alpha * duration / 2 for scipy tukey window.
"""
self
.
__freq_mask_updated
=
False
self
.
minimum_frequency
=
minimum_frequency
self
.
maximum_frequency
=
maximum_frequency
self
.
roll_off
=
roll_off
...
...
@@ -100,6 +102,7 @@ class InterferometerStrainData(object):
@minimum_frequency.setter
def
minimum_frequency
(
self
,
minimum_frequency
):
self
.
__minimum_frequency
=
minimum_frequency
self
.
__freq_mask_updated
=
False
@property
def
maximum_frequency
(
self
):
...
...
@@ -112,6 +115,7 @@ class InterferometerStrainData(object):
@maximum_frequency.setter
def
maximum_frequency
(
self
,
maximum_frequency
):
self
.
__maximum_frequency
=
maximum_frequency
self
.
__freq_mask_updated
=
False
@property
def
frequency_mask
(
self
):
...
...
@@ -121,14 +125,12 @@ class InterferometerStrainData(object):
-------
array_like: An array of boolean values
"""
try
:
return
self
.
_frequency_mask
except
AttributeError
:
if
not
self
.
__freq_mask_updated
:
frequency_array
=
self
.
_times_and_frequencies
.
frequency_array
mask
=
((
frequency_array
>=
self
.
minimum_frequency
)
&
(
frequency_array
<=
self
.
maximum_frequency
))
self
.
_frequency_mask
=
mask
return
self
.
_frequency_mask
return
self
.
_frequency_mask
@property
def
alpha
(
self
):
...
...
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