Skip to content

Commit 397324f

Browse files
committed
rm unused function from debugging
1 parent ecd0324 commit 397324f

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/aspire/abinitio/commonline_base.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -695,30 +695,6 @@ def _estimate_num_shift_equations(self, n_img):
695695

696696
return n_equations
697697

698-
def _m_generate_shift_phase_and_filter(self, r_max, max_shift, shift_step):
699-
"""
700-
Port the code from MATLAB first, grumble grumble, inside thoughts bro.
701-
"""
702-
703-
# Number of shifts to try
704-
n_shifts = int(np.ceil(2 * max_shift / shift_step + 1))
705-
706-
# only half of ray, excluding the DC component.
707-
rk = np.arange(-r_max, r_max + 1, dtype=self.dtype)
708-
rk2 = rk[:r_max]
709-
710-
shift_phases = np.zeros((r_max, n_shifts), dtype=np.complex128)
711-
for shiftidx in range(n_shifts):
712-
# zero based shiftidx
713-
shift = -max_shift + shiftidx * shift_step
714-
shift_phases[:, shiftidx] = np.exp(
715-
-2 * np.pi * 1j * rk2 * shift / (2 * r_max + 1)
716-
)
717-
718-
h = np.sqrt(np.abs(rk)) * np.exp(-(rk**2) / (2 * (r_max / 4) ** 2))
719-
720-
return None, shift_phases, h
721-
722698
def _generate_shift_phase_and_filter(self, r_max, max_shift, shift_step):
723699
"""
724700
Prepare the shift phases and generate filter for common-line detection

0 commit comments

Comments
 (0)