Skip to content
Snippets Groups Projects
Commit d3f16893 authored by Colm Talbot's avatar Colm Talbot
Browse files

Merge branch 'maximum_frequency_fix' into 'master'

fix bug if sampling frequency isn't set

See merge request Monash/tupak!122
parents 7210c7f3 59c4422f
No related branches found
No related tags found
1 merge request!122fix bug if sampling frequency isn't set
Pipeline #
......@@ -305,8 +305,9 @@ class InterferometerStrainData(object):
@property
def maximum_frequency(self):
""" Force the maximum frequency be less than the Nyquist frequency """
if 2 * self.__maximum_frequency > self.sampling_frequency:
self.__maximum_frequency = self.sampling_frequency / 2.
if self.sampling_frequency is not None:
if 2 * self.__maximum_frequency > self.sampling_frequency:
self.__maximum_frequency = self.sampling_frequency / 2.
return self.__maximum_frequency
@maximum_frequency.setter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment