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

Merge branch 'fixReadFromFrame' into 'master'

Add two extra seconds of data when reading from frame

See merge request Monash/tupak!73
parents 8c1dcfe5 bb9b5904
No related branches found
No related tags found
1 merge request!73Add two extra seconds of data when reading from frame
Pipeline #
......@@ -501,7 +501,7 @@ class Interferometer(object):
elif frame_file is not None:
logging.info('Reading data from frame, {}.'.format(self.name))
strain = tupak.gw.utils.read_frame_file(
frame_file, t1=epoch, t2=epoch + duration, channel=channel_name, resample=sampling_frequency)
frame_file, t1=epoch - 1, t2=epoch + duration + 1, channel=channel_name, resample=sampling_frequency)
frequency_domain_strain, frequencies = tupak.gw.utils.process_strain_data(strain, **kwargs)
if overwrite_psd:
self.power_spectral_density = PowerSpectralDensity(
......
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