Skip to content

Commit feee271

Browse files
committed
Match matlab shift_step default, 0.5
1 parent 979c41c commit feee271

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/aspire/abinitio/commonline_c3_c4.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(
4343
n_rad=None,
4444
n_theta=360,
4545
max_shift=0.15,
46-
shift_step=1,
46+
shift_step=0.5,
4747
epsilon=1e-2,
4848
max_iters=1000,
4949
degree_res=1,
@@ -58,10 +58,10 @@ def __init__(
5858
5959
:param src: The source object of 2D denoised or class-averaged images with metadata
6060
:param symmetry: A string, 'C3' or 'C4', indicating the symmetry type.
61-
:param n_rad: The number of points in the radial direction
61+
:param n_rad: The number of points in the radial direction.
6262
:param n_theta: The number of points in the theta direction. Default = 360.
6363
:param max_shift: Maximum range for shifts as a proportion of resolution. Default = 0.15.
64-
:param shift_step: Resolution of shift estimation in pixels. Default = 1 pixel.
64+
:param shift_step: Resolution of shift estimation in pixels. Default = 0.5 pixels.
6565
:param epsilon: Tolerance for the power method.
6666
:param max_iter: Maximum iterations for the power method.
6767
:param degree_res: Degree resolution for estimating in-plane rotations.

src/aspire/abinitio/commonline_cn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
n_rad=None,
4242
n_theta=360,
4343
max_shift=0.15,
44-
shift_step=1,
44+
shift_step=0.5,
4545
epsilon=1e-3,
4646
max_iters=1000,
4747
degree_res=1,
@@ -61,7 +61,7 @@ def __init__(
6161
:param n_rad: The number of points in the radial direction.
6262
:param n_theta: The number of points in the theta direction. Default = 360.
6363
:param max_shift: Maximum range for shifts as a proportion of resolution. Default = 0.15.
64-
:param shift_step: Resolution of shift estimation in pixels. Default = 1 pixel.
64+
:param shift_step: Resolution of shift estimation in pixels. Default = 0.5 pixel.
6565
:param epsilon: Tolerance for the power method.
6666
:param max_iter: Maximum iterations for the power method.
6767
:param degree_res: Degree resolution for estimating in-plane rotations.

0 commit comments

Comments
 (0)