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

Merge branch 'fix_psd_duration' into 'master'

Set total data loaded for the PSD calculation from frame file to be `psd_duration`

See merge request Monash/tupak!75
parents 08ae8cfa 4e1291b8
No related branches found
No related tags found
1 merge request!75Set total data loaded for the PSD calculation from frame file to be `psd_duration`
Pipeline #
......@@ -652,7 +652,7 @@ class PowerSpectralDensity:
logging.warning("You may have intended to provide this as a power spectral density.")
elif frame_file is not None:
strain = tupak.gw.utils.read_frame_file(frame_file, t1=epoch - psd_duration - psd_offset,
t2=epoch - psd_duration, channel=channel_name)
t2=epoch - psd_offset, channel=channel_name)
sampling_frequency = int(strain.sample_rate.value)
# Low pass filter
......
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