diff --git a/odl/solvers/functional/default_functionals.py b/odl/solvers/functional/default_functionals.py index 58da2b626db..4bfb97a6bc6 100644 --- a/odl/solvers/functional/default_functionals.py +++ b/odl/solvers/functional/default_functionals.py @@ -26,7 +26,6 @@ proximal_convex_conj_l1_l2, proximal_convex_conj_l2, proximal_huber, proximal_l1, proximal_l1_l2, proximal_l2, proximal_l2_squared) from odl.space import ProductSpace -from odl.ufunc_ops import exp from odl.util import ( REPR_PRECISION, conj_exponent, moveaxis, npy_printoptions, repr_string, signature_string_parts) @@ -1779,6 +1778,8 @@ def _call(self, x): @property def gradient(self): """Gradient operator of the functional.""" + # Avoid circular import + from odl.ufunc_ops import exp if self.prior is None: return exp(self.domain) else: