Skip to content

Commit

Permalink
Fix issue with lengthless fix for Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jank324 committed Apr 6, 2024
1 parent 6faef7d commit 806d191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cheetah/accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,7 @@ def __init__(
if misalignment is not None
else torch.tensor([(0.0, 0.0)], **factory_kwargs)
)
self.length = torch.zeros(self.misalignment.shape[:-1], **factory_kwargs)
self.is_active = is_active

self.set_read_beam(None)
Expand Down

0 comments on commit 806d191

Please sign in to comment.