Skip to content

Commit

Permalink
Change the syntax a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
delaossa committed Jul 5, 2024
1 parent bf6b4e6 commit 8eea77a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wake_t/beamline_elements/plasma_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ def __init__(
if self.wakefield is not None:
fields.append(self.wakefield)
fields.extend(self.external_fields)
self.auto_dt_bunch = auto_dt_bunch
if self.auto_dt_bunch is None:
if auto_dt_bunch is not None:
self.auto_dt_bunch = auto_dt_bunch
else:
self.auto_dt_bunch = self._get_optimized_dt
super().__init__(
length=length,
Expand Down

0 comments on commit 8eea77a

Please sign in to comment.