Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-liaudat committed Mar 18, 2024
1 parent ac2761f commit 8774691
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/wf_psf/psf_models/tf_psf_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def assign_S_mat(self, S_mat):
def project_DD_features(self, tf_zernike_cube):
"""Project data-driven features to parametric part.
This method projects non-parametric wavefront onto the first `n_poly_param` Zernikes,
This method projects non-parametric wavefront onto the first `n_poly_param` Zernikes,
which is defined by the order of zernike polynomials used in the parametric part.
Then, it transfers their parameters to the parametric model.
Expand Down
4 changes: 3 additions & 1 deletion src/wf_psf/tests/test_utils/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def test_unobscured_zernike_projection():
tf_unobscured_opd = tf_zernike_opd(tf_zk_array)

# Compute normalisation factor
norm_factor = unobscured_zernike_projection(tf_zernike_cube[0, :, :], tf_zernike_cube[0, :, :])
norm_factor = unobscured_zernike_projection(
tf_zernike_cube[0, :, :], tf_zernike_cube[0, :, :]
)

# Compute projections for each zernike
estimated_zk_array = np.array(
Expand Down
4 changes: 3 additions & 1 deletion src/wf_psf/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ def train(
psf_model.project_DD_features(
psf_model.zernike_maps
) # make this a callable function
logger.info("Projected non-parametric DD features onto the parametric model.")
logger.info(
"Projected non-parametric DD features onto the parametric model."
)
if psf_model.reset_dd_features:
psf_model.tf_np_poly_opd.init_vars()
logger.info("DataDriven features were reset to random initialisation.")
Expand Down
2 changes: 1 addition & 1 deletion src/wf_psf/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def load_multi_cycle_params_click(args):

def 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.
Defined such that Zernikes are orthonormal to each other.
Expand Down

0 comments on commit 8774691

Please sign in to comment.