Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2023
1 parent ba93673 commit c1b3633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lasy/utils/mode_decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def hermite_gauss_decomposition(laserProfile, n_x_max=12, n_y_max=12, res=1e-6):
for i in range(n_x_max):
for j in range(n_y_max):
HGMode = HermiteGaussianTransverseProfile(w0, i, j)
coef = np.real(np.sum(field * HGMode.evaluate(X, Y)) * dx * dy) # modalDecomposition
coef = np.real(
np.sum(field * HGMode.evaluate(X, Y)) * dx * dy
) # modalDecomposition
if math.isnan(coef):
coef = 0
weights[(i, j)] = coef
Expand Down

0 comments on commit c1b3633

Please sign in to comment.