Skip to content

Commit

Permalink
make srate int
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhooshan Gadre committed Oct 23, 2023
1 parent e75c49c commit c73b541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pycbc/psd/variation.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def mean_square(data, delta_t, srate, short_stride, stride):

def calc_filt_psd_variation(strain, segment, short_segment, psd_long_segment,
psd_duration, psd_stride, psd_avg_method, low_freq,
high_freq, srate):
high_freq, sample_rate):
""" Calculates time series of PSD variability
This function first splits the segment up into 512 second chunks. It
Expand Down Expand Up @@ -113,6 +113,7 @@ def calc_filt_psd_variation(strain, segment, short_segment, psd_long_segment,
# Convert start and end times immediately to floats
start_time = float(strain.start_time)
end_time = float(strain.end_time)
srate = int(sample_rate)

# Resample the data
strain = resample_to_delta_t(strain, 1. / srate)
Expand Down

0 comments on commit c73b541

Please sign in to comment.