Verified Commit 58db85f9 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

lalinference: use relative imports

parent d94cba17
Pipeline #33221 passed with stages
in 26 minutes and 40 seconds
......@@ -61,7 +61,7 @@ from numpy import linspace
import random
import socket
from itertools import combinations
from lalinference import LALInferenceHDF5PosteriorSamplesDatasetName as posterior_grp_name
from .lalinference import LALInferenceHDF5PosteriorSamplesDatasetName as posterior_grp_name
import re
import six
......
......@@ -640,5 +640,5 @@ def parameters_to_marginal_moments(prob, distmu, distsigma):
r2bar = (prob * (np.square(diststd) + np.square(distmean))).sum()
return rbar, np.sqrt(r2bar - np.square(rbar))
from lalinference.bayestar.deprecation import warn
from .bayestar.deprecation import warn
warn('ligo.skymap.distance')
......@@ -120,5 +120,5 @@ def eigenframe_to_icrs(from_coo, to_frame):
from_coo.e_y.xyz.value,
from_coo.e_z.xyz.value))
from lalinference.bayestar.deprecation import warn
from .bayestar.deprecation import warn
warn('ligo.skymap.coordinates.eigenframe')
......@@ -430,5 +430,5 @@ def reconstruct_nested(m, order='depthfirst', extra=True):
for _ in func(m, extra):
yield _
from lalinference.bayestar.deprecation import warn
from .bayestar.deprecation import warn
warn('ligo.skymap.healpix_tree')
......@@ -112,5 +112,5 @@ class BoundedKDE(gaussian_kde):
return np.count_nonzero(self(self.dataset) < self(pt)) / self.n
from lalinference.bayestar.deprecation import warn
from .bayestar.deprecation import warn
warn('ligo.skymap.kde')
......@@ -131,5 +131,5 @@ def rasterize(moc_data):
"""
return _moc.rasterize(moc_data)
from lalinference.bayestar.deprecation import warn
from .bayestar.deprecation import warn
warn('ligo.skymap.moc')
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