You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docstrings, parameter names and type hints of some beam class methods are not consistent with the new coordinate system. In particular, the from_twiss() method refers to sigma_s and its docstrings for sigma_p disagrees with from_parameters() about its unit.
Furthermore, the num_particles parameter of ParticleBeam methods is supposed to be a torch.Tensor according to its type hint, but the methods crash if a tensor is provided and a standard integer works.
The text was updated successfully, but these errors were encountered:
The docstrings, parameter names and type hints of some
beam
class methods are not consistent with the new coordinate system. In particular, thefrom_twiss()
method refers tosigma_s
and its docstrings forsigma_p
disagrees withfrom_parameters()
about its unit.Furthermore, the
num_particles
parameter ofParticleBeam
methods is supposed to be atorch.Tensor
according to its type hint, but the methods crash if a tensor is provided and a standard integer works.The text was updated successfully, but these errors were encountered: