Skip to content

Commit

Permalink
Change names to improve readability; Correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jeipollack committed Mar 27, 2024
1 parent 68aad3f commit 4b9bdf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wf_psf/psf_models/psf_model_semiparametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def project_DD_features(self, tf_zernike_cube=None):
# Get beta tilde as the proyection of the first n_param_poly_terms (6 for d_max=2) onto the first n_zernikes.
beta_tilde_inner = np.array(
[
tf_decompose_obscured_opd_basis(
decompose_tf_obscured_opd_basis(
tf_opd=s_tilde_slice,
tf_obscurations=self.obscurations,
tf_zk_basis=tf_zernike_cube,
Expand Down
4 changes: 2 additions & 2 deletions src/wf_psf/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def load_multi_cycle_params_click(args):
return args


def unobscured_zernike_projection(tf_z1, tf_z2, norm_factor=None):
def compute_unobscured_zernike_projection(tf_z1, tf_z2, norm_factor=None):
"""Compute a zernike projection for unobscured wavefronts (OPDs).
Compute internal product between zernikes and OPDs.
Expand All @@ -505,7 +505,7 @@ def unobscured_zernike_projection(tf_z1, tf_z2, norm_factor=None):
return np.sum((tf.math.multiply(tf_z1, tf_z2)).numpy()) / (norm_factor)


def tf_decompose_obscured_opd_basis(
def decompose_tf_obscured_opd_basis(
tf_opd, tf_obscurations, tf_zk_basis, n_zernike, iters=20
):
"""Decompose obscured OPD into a basis using an iterative algorithm.
Expand Down

0 comments on commit 4b9bdf7

Please sign in to comment.