Skip to content

Commit

Permalink
Need to force numpy in PSD estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
spxiwh committed Nov 22, 2024
1 parent 8f5b539 commit d404116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pycbc/psd/estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def welch(timeseries, seg_len=4096, seg_stride=2048, window='hann',
median_bias(len(even_psds))
psd = (odd_median + even_median) / 2

w = w.numpy()
psd *= 2 * delta_f * seg_len / (w*w).sum()

return FrequencySeries(psd, delta_f=delta_f, dtype=timeseries.dtype,
Expand Down

0 comments on commit d404116

Please sign in to comment.