Skip to content
Snippets Groups Projects
Commit 84b4f8d1 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix minor bug in PSD setting

If the analysis segment is within the PSD duration, the segment is cut
out of the data used to generate a PSD. When implemented however, the
inequalities where reversed breaking the intented behaviour.
parent 781c2829
No related branches found
No related tags found
No related merge requests found
Pipeline #49859 passed
......@@ -473,8 +473,8 @@ class InterferometerStrainData(object):
logger.info("Removing analysis segment data from the PSD data")
analysis_segment_end_time = analysis_segment_start_time + fft_length
idxs = (
(self.time_array > analysis_segment_start_time) &
(self.time_array < analysis_segment_end_time))
(self.time_array < analysis_segment_start_time) +
(self.time_array > analysis_segment_end_time))
data = self.time_domain_strain[idxs]
else:
data = self.time_domain_strain
......
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