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

PSD needs epoch

parent c2409b21
No related branches found
No related tags found
1 merge request!54Read frame data
Pipeline #
...@@ -364,12 +364,12 @@ class Interferometer(object): ...@@ -364,12 +364,12 @@ class Interferometer(object):
sampling_frequency, duration) sampling_frequency, duration)
elif frame_file is not None: elif frame_file is not None:
logging.info('Reading data from frame, {}.'.format(self.name)) logging.info('Reading data from frame, {}.'.format(self.name))
strain = tupak.utils.read_frame_file(frame_file, t1=epoch, t2=epoch+duration, channel=channel_name, strain = tupak.utils.read_frame_file(
resample=sampling_frequency) frame_file, t1=epoch, t2=epoch+duration, channel=channel_name, resample=sampling_frequency)
frequency_domain_strain, frequencies = tupak.utils.process_strain_data(strain, **kwargs) frequency_domain_strain, frequencies = tupak.utils.process_strain_data(strain, **kwargs)
frequencies = utils.create_frequency_series(sampling_frequency, duration) frequencies = utils.create_frequency_series(sampling_frequency, duration)
self.power_spectral_density = PowerSpectralDensity(frame_file=frame_file, channel_name=channel_name, self.power_spectral_density = PowerSpectralDensity(
**kwargs) frame_file=frame_file, channel_name=channel_name, epoch=epoch, **kwargs)
else: else:
raise ValueError("No method to set data provided.") raise ValueError("No method to set data provided.")
......
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