Missing import in bilby.gw.detector.load_data_from_cache_file
bilby.gw.detector.load_data_from_cache_file
fails since it appears to be missing an import lal
:
python bilby_run.py
Traceback (most recent call last):
File "/Users/howard/Desktop/output/2024-02-12/gw150914_bilby/bilby_run.py", line 49, in <module>
interferometer = bilby.gw.detector.load_data_from_cache_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/bilby/lib/python3.11/site-packages/bilby/gw/detector/__init__.py", line 254, in load_data_from_cache_file
cache = lal.utils.cache.CacheEntry(line)
^^^
NameError: name 'lal' is not defined
The line mentioned in the traceback is here: https://git.ligo.org/lscsoft/bilby/-/blob/f8b004a80fa2f735b171b144154d5563f569abdf/bilby/gw/detector/init.py#L254
Sure enough, that file does not import lal
, so I believe adding it would fix this issue.