Commit c313f5e7 authored by Gregory Ashton's avatar Gregory Ashton

Update lalsimulation import

If lalsim is not installed just add a warning rather than raising an
error. Previously this did already exist in source.py, but we now also
import lalsim in conversion.py as well
parent 752a1d6a
Pipeline #20606 passed with stages
in 14 minutes and 35 seconds
import tupak
import numpy as np
import lalsimulation as lalsim
import pandas as pd
import logging
try:
import lalsimulation as lalsim
except ImportError:
logging.warning("You do not have lalsuite installed currently. You will "
" not be able to use some of the prebuilt functions.")
def convert_to_lal_binary_black_hole_parameters(parameters, search_keys, remove=True):
"""
......
......@@ -5,8 +5,8 @@ import logging
try:
import lalsimulation as lalsim
except ImportError:
logging.warning("You do not have lalsuite installed currently. You will not be able to use some of the "
"prebuilt functions.")
logging.warning("You do not have lalsuite installed currently. You will "
" not be able to use some of the prebuilt functions.")
from . import utils
......
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