Commit 895e6232 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Closes #139

parent 5ae14dc2
......@@ -1773,9 +1773,9 @@ def load_interferometer(filename):
def get_interferometer_with_open_data(
name, trigger_time, duration=4, start_time=None, roll_off=0.4, psd_offset=-1024,
psd_duration=100, cache=True, outdir='outdir', label=None, plot=True, filter_freq=None,
raw_data_file=None, **kwargs):
name, trigger_time, duration=4, start_time=None, roll_off=0.4,
psd_offset=-1024, psd_duration=100, cache=True, outdir='outdir',
label=None, plot=True, filter_freq=None, **kwargs):
"""
Helper function to obtain an Interferometer instance with appropriate
PSD and data, given an center_time.
......@@ -1799,8 +1799,6 @@ def get_interferometer_with_open_data(
`center_time+psd_offset` to `center_time+psd_offset + psd_duration`.
cache: bool, optional
Whether or not to store the acquired data
raw_data_file: str
Name of a raw data file if this supposed to be read from a local file
outdir: str
Directory where the psd files are saved
label: str
......@@ -1942,7 +1940,7 @@ def get_interferometer_with_fake_noise_and_injection(
def get_event_data(
event, interferometer_names=None, duration=4, roll_off=0.4,
psd_offset=-1024, psd_duration=100, cache=True, outdir='outdir',
label=None, plot=True, filter_freq=None, raw_data_file=None, **kwargs):
label=None, plot=True, filter_freq=None, **kwargs):
"""
Get open data for a specified event.
......@@ -1963,8 +1961,6 @@ def get_event_data(
`center_time+psd_offset` to `center_time+psd_offset + psd_duration`.
cache: bool
Whether or not to store the acquired data.
raw_data_file:
If we want to read the event data from a local file.
outdir: str
Directory where the psd files are saved
label: str
......@@ -1997,7 +1993,7 @@ def get_event_data(
name, trigger_time=event_time, duration=duration, roll_off=roll_off,
psd_offset=psd_offset, psd_duration=psd_duration, cache=cache,
outdir=outdir, label=label, plot=plot, filter_freq=filter_freq,
raw_data_file=raw_data_file, **kwargs))
**kwargs))
except ValueError as e:
logger.debug("Error raised {}".format(e))
logger.warning('No data found for {}.'.format(name))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment