Skip to content

Commit 858f114

Browse files
committed
Resolve circular import
1 parent 2987ac9 commit 858f114

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/aspire/utils/bot_align.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from numpy.linalg import norm
1212
from scipy.optimize import minimize
1313

14-
from aspire.operators import wemd_embed
1514
from aspire.utils.rotation import Rotation
1615

1716
# Store parameters specific to each loss_type.
@@ -64,6 +63,9 @@ def align_BO(
6463
Default `None` infers dtype from `vol_ref`.
6564
:return: Rotation matrix R_init (without refinement) or (R_init, R_est) (with refinement).
6665
"""
66+
# Avoid utils/operators/utils circular import
67+
from aspire.operators import wemd_embed
68+
6769
# Infer dtype
6870
dtype = np.dtype(dtype or vol_ref.dtype)
6971

0 commit comments

Comments
 (0)