Closed alexdennis312 closed 2 weeks ago
Which version of Cheetah are you running?
Which version of Cheetah are you running?
I'm using version 0.6.3
Which version of Cheetah are you running?
I'm using version 0.6.3
Then your issue is that the code example you are using is from the current master
branch, which is a pre-release version of 0.7.0. There is a breaking change going from 0.6.* to 0.7, which changes how you pass parameters to Cheetah Elements (see the CHANGELOG.md
file and #116).
If you use the code example from the v0.6.3 tag, everything should work. Alternatively you could also directly install 0.7 from master
with
pip install git+https://github.com/desy-ml/cheetah.git
and use the code example you have been using.
Let me know if this works for you.
Which version of Cheetah are you running?
I'm using version 0.6.3
Then your issue is that the code example you are using is from the current
master
branch, which is a pre-release version of 0.7.0. There is a breaking change going from 0.6.* to 0.7, which changes how you pass parameters to Cheetah Elements (see theCHANGELOG.md
file and #116).If you use the code example from the v0.6.3 tag, everything should work. Alternatively you could also directly install 0.7 from
master
withpip install git+https://github.com/desy-ml/cheetah.git
and use the code example you have been using.
Let me know if this works for you.
This worked! Thank you so much for your help!
the simple example under docs didn't work for me when trying to run. It gives me the error "ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (1024,) + inhomogeneous part."
Here is my code:
Everything seems to work except for the segment.plot_overview(beam=incoming_beam) line, which is also where the error appears.