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

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
No related branches found
No related tags found
No related merge requests found
Pipeline #
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
......
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