Skip to content
Snippets Groups Projects
Commit 26b2b43d authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Deprecates some of the problematic helper functions

- The helper functions are not tested rigourously and hide detail under
  the hood. This deprecates them in favour of the users setting things
  up themselves.
parent 3894928f
No related branches found
No related tags found
No related merge requests found
import os
import sys
import warnings
import numpy as np
......@@ -307,6 +308,12 @@ def get_event_data(
------
list: A list of bilby.gw.detector.Interferometer objects
"""
warnings.warn(
"get_event_data is deprecated, use set_strain_data_from_gwpy instead",
DeprecationWarning
)
event_time = gwutils.get_event_time(event)
interferometers = []
......@@ -436,6 +443,11 @@ def get_interferometer_with_open_data(
"""
warnings.warn(
"get_interferometer_with_open_data is deprecated, use set_strain_data_from_gwpy instead",
DeprecationWarning
)
logger.warning(
"Parameter estimation for real interferometer data in bilby is in "
"alpha testing at the moment: the routines for windowing and filtering"
......
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