Skip to content

Commit

Permalink
apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-liaudat committed Mar 18, 2024
1 parent d0ee468 commit 44e55c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/wf_psf/tests/test_utils/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def test_unobscured_zernike_projection():
tf_zk_array = tf.convert_to_tensor(zk_array, dtype=tf.float32)

# Compute OPD
tf_unobscured_opd = tf.math.reduce_sum(tf.math.multiply(tf_zernike_cube, tf_zk_array), axis=1)
tf_unobscured_opd = tf.math.reduce_sum(
tf.math.multiply(tf_zernike_cube, tf_zk_array), axis=1
)

# Compute normalisation factor
norm_factor = unobscured_zernike_projection(
Expand Down Expand Up @@ -84,7 +86,9 @@ def test_tf_decompose_obscured_opd_basis():
tf_zk_array = tf.convert_to_tensor(zk_array, dtype=tf.float32)

# Compute OPD
tf_unobscured_opd = tf.math.reduce_sum(tf.math.multiply(tf_zernike_cube, tf_zk_array), axis=1)
tf_unobscured_opd = tf.math.reduce_sum(
tf.math.multiply(tf_zernike_cube, tf_zk_array), axis=1
)
# Obscure the OPD
tf_obscured_opd = tf.math.multiply(
tf_unobscured_opd, tf.expand_dims(tf_obscurations, axis=0)
Expand Down

0 comments on commit 44e55c8

Please sign in to comment.