Skip to content

Commit

Permalink
issue when using PSD from a file (reopen)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleyna Akyuz authored and Aleyna Akyuz committed Sep 9, 2024
1 parent e58d380 commit 061c106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pycbc/psd/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def from_numpy_arrays(freq_data, noise_data, length, delta_f, low_freq_cutoff):
flow = kmin * delta_f

data_start = (0 if freq_data[0]==low_freq_cutoff else numpy.searchsorted(freq_data, flow) - 1)
data_start = max(0, data_start)

# If the cutoff is exactly in the file, start there
if freq_data[data_start+1] == low_freq_cutoff:
Expand Down

0 comments on commit 061c106

Please sign in to comment.