1818logger = logging .getLogger (__name__ )
1919
2020
21- def estimate_third_rows (vijs , viis ):
21+ def _estimate_third_rows (vijs , viis ):
2222 """
2323 Find the third row of each rotation matrix given a collection of matrices
2424 representing the outer products of the third rows from each rotation matrix.
@@ -68,7 +68,7 @@ def estimate_third_rows(vijs, viis):
6868 return vis
6969
7070
71- def estimate_inplane_rotations (cl_class , vis ):
71+ def _estimate_inplane_rotations (cl_class , vis ):
7272 """
7373 Estimate the rotation matrices for each image by constructing arbitrary rotation matrices
7474 populated with the given third rows, vis, and then rotating by an appropriate in-plane rotation.
@@ -89,7 +89,7 @@ def estimate_inplane_rotations(cl_class, vis):
8989
9090 # Step 1: Construct all rotation matrices Ri_tildes whose third rows are equal to
9191 # the corresponding third rows vis.
92- Ri_tildes = complete_third_row_to_rot (vis )
92+ Ri_tildes = _complete_third_row_to_rot (vis )
9393
9494 # Step 2: Construct all in-plane rotation matrices, R_theta_ijs.
9595 max_angle = (360 // order ) * order
@@ -146,8 +146,8 @@ def estimate_inplane_rotations(cl_class, vis):
146146 c2s = np .array ([[U [2 , 1 ], - U [2 , 0 ]] for U in Us ])
147147
148148 # Convert from angles to indices.
149- c1s = cl_angles_to_ind (c1s , n_theta )
150- c2s = cl_angles_to_ind (c2s , n_theta )
149+ c1s = _cl_angles_to_ind (c1s , n_theta )
150+ c2s = _cl_angles_to_ind (c2s , n_theta )
151151
152152 # Perform correlation, corrs is shape n_shifts x len(theta_ijs).
153153 corrs = np .array (
@@ -197,7 +197,7 @@ def estimate_inplane_rotations(cl_class, vis):
197197 return Ris
198198
199199
200- def complete_third_row_to_rot (r3 ):
200+ def _complete_third_row_to_rot (r3 ):
201201 """
202202 Construct rotation matrices whose third rows are equal to the given row vectors.
203203 For vector r3 = [a, b, c], where [a, b, c] != [0, 0, 1], we return the matrix
@@ -246,7 +246,7 @@ def complete_third_row_to_rot(r3):
246246 return rots
247247
248248
249- def cl_angles_to_ind (cl_angles , n_theta ):
249+ def _cl_angles_to_ind (cl_angles , n_theta ):
250250 thetas = np .arctan2 (cl_angles [:, 1 ], cl_angles [:, 0 ])
251251
252252 # Shift from [-pi,pi] to [0,2*pi).
0 commit comments