Commit df4a4919 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds minimum and maximum frequency props to InterferomerList

parent ba927837
......@@ -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
def minimum_frequency(self):
return self[0].strain_data.minimum_frequency
def maximum_frequency(self):
return self[0].strain_data.maximum_frequency
def frequency_array(self):
return self[0].strain_data.frequency_array
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment