Replies: 1 comment 1 reply
-
Hello, You may change: Then at atpass will give you an error because it is a private interface and will point you to at.lattice_pass that is the official public tracking interface. |
Beta Was this translation helpful? Give feedback.
-
Edit: I now have a similar question that follows under this title.
I'm trying a more simplistic particle tracking exercise by creating a single array to be used as the r_in parameter of the at.pass() function, but I keep getting errors such as
ValueError: rin is not a double array
However, when I check the shape of the array I made, I get exactly the type of array outlined in the parameters breakdown for r_in, which says it must be a (6, N) array.
In my code, I first defined the lattice as
and then create the array while passing it into the atpass() function using
printing the shape of rin gives me a (6, 1) array, but I still get the value error. So, what is it that I'm doing wrong to keep getting this error?
Beta Was this translation helpful? Give feedback.
All reactions