Skip to content

Commit

Permalink
Fix tests failing because of bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jank324 committed Dec 1, 2023
1 parent ecc70e0 commit d40ec42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheetah/particles.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def from_astra(cls, path: str, **kwargs) -> "ParticleBeam":
particle_charges = torch.from_numpy(particle_charges)
return cls(
particles=particles_7d,
energy=torch.tensor(energy),
energy=torch.tensor(energy, dtype=torch.float32),
particle_charges=particle_charges,
**kwargs,
)
Expand Down

0 comments on commit d40ec42

Please sign in to comment.