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 Oct 26, 2023
1 parent 9e65b67 commit c35e751
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lasy/laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ def propagate(self, distance, nr_boundary=None, backend="NP", show_progress=True
for i_m in range(self.grid.azimuthal_modes.size):
transform_data = np.transpose(field_fft[i_m]).copy()
self.prop[i_m].step(
transform_data, distance, overwrite=True, show_progress=show_progress
transform_data,
distance,
overwrite=True,
show_progress=show_progress,
)
field_fft[i_m, :, :] = np.transpose(transform_data).copy()
else:
Expand All @@ -231,7 +234,9 @@ def propagate(self, distance, nr_boundary=None, backend="NP", show_progress=True
)
# Propagate the spectral image
transform_data = np.transpose(field_fft).copy()
self.prop.step(transform_data, distance, overwrite=True, show_progress=show_progress)
self.prop.step(
transform_data, distance, overwrite=True, show_progress=show_progress
)
field_fft[:, :, :] = np.transpose(transform_data).copy()

# Choose the time translation assuming propagation at v=c
Expand Down

0 comments on commit c35e751

Please sign in to comment.