Fix import of deprecation warning
Recent master was giving me this error when trying to use lalapps_nest2pos.
Traceback (most recent call last):
File "/home/jveitch/opt/lalsuites/master/libexec/lalapps/lalapps_nest2pos.py", line 280, in <module>
return_values = read_nested_from_hdf5(datafiles)
File "/home/jveitch/opt/lalsuites/master/libexec/lalapps/lalapps_nest2pos.py", line 35, in read_nested_from_hdf5
from lalinference.io import read_samples
File "/home/jveitch/opt/lalsuites/master/lib/python2.7/site-packages/lalinference/io/__init__.py", line 28, in <module>
'from .{0} import *'.format(module))
File "/home/jveitch/.local/lib/python2.7/site-packages/six.py", line 709, in exec_
exec("""exec _code_ in _globs_, _locs_""")
File "<string>", line 1, in <module>
File "<string>", line 1, in <module>
File "/home/jveitch/opt/lalsuites/master/lib/python2.7/site-packages/lalinference/io/fits.py", line 71, in <module>
from .. import moc
File "/home/jveitch/opt/lalsuites/master/lib/python2.7/site-packages/lalinference/moc.py", line 133, in <module>
from lalinference.bayestar.deprecation import warn
ImportError: No module named bayestar.deprecation
Changing to
from .bayestar.deprecation import warn
fixes the issue.
Edited by Ghost User