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

Changes the warning messages to debug messages for gw-related codes

parent 2c7dd519
No related branches found
No related tags found
No related merge requests found
......@@ -990,7 +990,7 @@ class BilbyJsonEncoder(json.JSONEncoder):
if isinstance(obj, units.PrefixUnit):
return str(obj)
except ImportError:
logger.info("Cannot import astropy, cannot write cosmological priors")
logger.debug("Cannot import astropy, cannot write cosmological priors")
if isinstance(obj, np.ndarray):
return {'__array__': True, 'content': obj.tolist()}
if isinstance(obj, complex):
......@@ -1052,8 +1052,8 @@ def decode_astropy_cosmology(dct):
del dct['__cosmology__'], dct['__name__']
return cosmo_cls(**dct)
except ImportError:
logger.info("Cannot import astropy, cosmological priors may not be "
"properly loaded.")
logger.debug("Cannot import astropy, cosmological priors may not be "
"properly loaded.")
return dct
......@@ -1066,8 +1066,8 @@ def decode_astropy_quantity(dct):
del dct['__astropy_quantity__']
return units.Quantity(**dct)
except ImportError:
logger.info("Cannot import astropy, cosmological priors may not be "
"properly loaded.")
logger.debug("Cannot import astropy, cosmological priors may not be "
"properly loaded.")
return dct
......
......@@ -9,8 +9,8 @@ try:
import lal
import lalsimulation as lalsim
except ImportError:
logger.warning("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
def get_safe_signal_duration(mass_1, mass_2, a_1, a_2, tilt_1, tilt_2, flow=10):
......
......@@ -16,8 +16,8 @@ try:
import gwpy
import gwpy.signal
except ImportError:
logger.warning("You do not have gwpy installed currently. You will "
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have gwpy installed currently. You will "
" not be able to use some of the prebuilt functions.")
class Interferometer(object):
......
......@@ -11,14 +11,14 @@ try:
import gwpy
import gwpy.signal
except ImportError:
logger.warning("You do not have gwpy installed currently. You will "
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have gwpy installed currently. You will "
" not be able to use some of the prebuilt functions.")
try:
import lal
except ImportError:
logger.warning("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
class InterferometerStrainData(object):
......
......@@ -16,8 +16,8 @@ try:
import lal
import lalsimulation as lalsim
except ImportError:
logger.warning("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
def lal_binary_black_hole(
......
......@@ -15,15 +15,15 @@ from ..core.utils import (ra_dec_to_theta_phi,
try:
from gwpy.timeseries import TimeSeries
except ImportError:
logger.warning("You do not have gwpy installed currently. You will "
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have gwpy installed currently. You will "
" not be able to use some of the prebuilt functions.")
try:
import lal
import lalsimulation as lalsim
except ImportError:
logger.warning("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
logger.debug("You do not have lalsuite installed currently. You will"
" not be able to use some of the prebuilt functions.")
def asd_from_freq_series(freq_data, df):
......
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