Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Williams
bilby
Commits
df4a4919
Commit
df4a4919
authored
Feb 01, 2019
by
Gregory Ashton
Browse files
Adds minimum and maximum frequency props to InterferomerList
parent
ba927837
Changes
1
Hide whitespace changes
Inline
Side-by-side
bilby/gw/detector.py
View file @
df4a4919
...
...
@@ -52,7 +52,9 @@ class InterferometerList(list):
def
_check_interferometers
(
self
):
""" Check certain aspects of the set are the same """
consistent_attributes
=
[
'duration'
,
'start_time'
,
'sampling_frequency'
]
consistent_attributes
=
[
'duration'
,
'start_time'
,
'sampling_frequency'
,
'minimum_frequency'
,
'maximum_frequency'
]
for
attribute
in
consistent_attributes
:
x
=
[
getattr
(
interferometer
.
strain_data
,
attribute
)
for
interferometer
in
self
]
...
...
@@ -190,6 +192,14 @@ class InterferometerList(list):
def
sampling_frequency
(
self
):
return
self
[
0
].
strain_data
.
sampling_frequency
@
property
def
minimum_frequency
(
self
):
return
self
[
0
].
strain_data
.
minimum_frequency
@
property
def
maximum_frequency
(
self
):
return
self
[
0
].
strain_data
.
maximum_frequency
@
property
def
frequency_array
(
self
):
return
self
[
0
].
strain_data
.
frequency_array
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment