Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vectorization error in RBend #171

Closed
Hespe opened this issue Jun 12, 2024 · 0 comments · Fixed by #173
Closed

Vectorization error in RBend #171

Hespe opened this issue Jun 12, 2024 · 0 comments · Fixed by #173
Assignees
Labels
bug Something isn't working

Comments

@Hespe
Copy link
Member

Hespe commented Jun 12, 2024

On the current master branch (version 0.7, commit b9f971d) the RBend segment fails to be properly constructed.
Likely related to #170.

Minimal example:

import torch
import cheetah

segment = cheetah.Segment(
    elements=[
        cheetah.RBend(length=torch.tensor([1])),
    ]
)

segment.plot_overview()

Crashes with IndexError: too many indices for tensor of dimension 0

@jank324 jank324 added the bug Something isn't working label Jun 12, 2024
@cr-xu cr-xu self-assigned this Jun 12, 2024
@cr-xu cr-xu linked a pull request Jun 12, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants