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 Dec 19, 2024
1 parent 09dba08 commit 9f3a732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lasy/laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ def show(self, show_intensity=False, **kw):
spatial_unit = r"($\mu m$)"

# Calculate temporal scales for the axes
if self.grid.hi[-1]-self.grid.lo[-1] > 1e-9:
if self.grid.hi[-1] - self.grid.lo[-1] > 1e-9:
# scale is nanoseconds
temporal_scale = 1e-9
temporal_unit = r"(ns)"
elif self.grid.hi[-1]-self.grid.lo[-1] > 1e-12:
elif self.grid.hi[-1] - self.grid.lo[-1] > 1e-12:
# scale is picoseconds
temporal_scale = 1e-12
temporal_unit = r"(ps)"
Expand Down

0 comments on commit 9f3a732

Please sign in to comment.