diff --git a/src/aspire/abinitio/commonline_c2.py b/src/aspire/abinitio/commonline_c2.py index 7e36cfe45e..6bf6cf99ed 100644 --- a/src/aspire/abinitio/commonline_c2.py +++ b/src/aspire/abinitio/commonline_c2.py @@ -35,7 +35,7 @@ def __init__( self, src, n_rad=None, - n_theta=None, + n_theta=360, max_shift=0.15, shift_step=1, epsilon=1e-3, @@ -50,7 +50,7 @@ def __init__( :param src: The source object of 2D denoised or class-averaged images with metadata :param n_rad: The number of points in the radial direction - :param n_theta: The number of points in the theta direction + :param n_theta: The number of points in the theta direction. Default = 360. :param max_shift: Maximum range for shifts as a proportion of resolution. Default = 0.15. :param shift_step: Resolution of shift estimation in pixels. Default = 1 pixel. :param epsilon: Tolerance for the power method. diff --git a/src/aspire/abinitio/commonline_c3_c4.py b/src/aspire/abinitio/commonline_c3_c4.py index 242094b745..0170d8b88f 100644 --- a/src/aspire/abinitio/commonline_c3_c4.py +++ b/src/aspire/abinitio/commonline_c3_c4.py @@ -44,7 +44,7 @@ def __init__( src, symmetry=None, n_rad=None, - n_theta=None, + n_theta=360, max_shift=0.15, shift_step=1, epsilon=1e-2, @@ -59,7 +59,7 @@ def __init__( :param src: The source object of 2D denoised or class-averaged images with metadata :param symmetry: A string, 'C3' or 'C4', indicating the symmetry type. :param n_rad: The number of points in the radial direction - :param n_theta: The number of points in the theta direction + :param n_theta: The number of points in the theta direction. Default = 360. :param max_shift: Maximum range for shifts as a proportion of resolution. Default = 0.15. :param shift_step: Resolution of shift estimation in pixels. Default = 1 pixel. :param epsilon: Tolerance for the power method. diff --git a/src/aspire/abinitio/commonline_cn.py b/src/aspire/abinitio/commonline_cn.py index 94c9fa3ca3..a1440cadc3 100644 --- a/src/aspire/abinitio/commonline_cn.py +++ b/src/aspire/abinitio/commonline_cn.py @@ -31,7 +31,7 @@ def __init__( src, symmetry=None, n_rad=None, - n_theta=None, + n_theta=360, max_shift=0.15, shift_step=1, epsilon=1e-3, @@ -48,7 +48,7 @@ def __init__( :param src: The source object of 2D denoised or class-averaged images with metadata :param symmetry: A string, 'Cn', indicating the symmetry type. :param n_rad: The number of points in the radial direction. - :param n_theta: The number of points in the theta direction. + :param n_theta: The number of points in the theta direction. Default = 360. :param max_shift: Maximum range for shifts as a proportion of resolution. Default = 0.15. :param shift_step: Resolution of shift estimation in pixels. Default = 1 pixel. :param epsilon: Tolerance for the power method. diff --git a/src/aspire/abinitio/commonline_d2.py b/src/aspire/abinitio/commonline_d2.py index 6c930105c7..8acbade2ca 100644 --- a/src/aspire/abinitio/commonline_d2.py +++ b/src/aspire/abinitio/commonline_d2.py @@ -28,7 +28,7 @@ def __init__( self, src, n_rad=None, - n_theta=None, + n_theta=360, max_shift=0.15, shift_step=1, grid_res=1200, @@ -43,7 +43,7 @@ def __init__( :param src: The source object of 2D denoised or class-averaged images with metadata :param n_rad: The number of points in the radial direction of Fourier image. - :param n_theta: The number of points in the theta direction of Fourier image. + :param n_theta: The number of points in the theta direction of Fourier image. Default = 360. :param max_shift: Maximum range for shifts as a proportion of resolution. Default = 0.15. :param shift_step: Resolution of shift estimation in pixels. Default = 1 pixel. :param grid_res: Number of sampling points on sphere for projetion directions. diff --git a/tests/test_orient_symmetric.py b/tests/test_orient_symmetric.py index 8fe5423785..9ab63459df 100644 --- a/tests/test_orient_symmetric.py +++ b/tests/test_orient_symmetric.py @@ -84,9 +84,9 @@ def source_orientation_objs(n_img, L, order, dtype): seed=seed, ) + # Use default n_theta = 360. cl_kwargs = dict( src=src, - n_theta=360, max_shift=1 / L, seed=seed, mask=False,