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

Maximum recusion depth #2

Open
JoshuaAppleby opened this issue Jan 13, 2025 · 0 comments
Open

Maximum recusion depth #2

JoshuaAppleby opened this issue Jan 13, 2025 · 0 comments

Comments

@JoshuaAppleby
Copy link

Maximum recursion depth reached when plotting in 001_obstable.ipynb, cell 7, cell 17, cell 21.

# Plot the lost particles and the obstacle
obstacle = collider.lhcb1['obstacle']
fig2 = plt.figure(2)
plt.plot(lost_particles.x, lost_particles.y, '.', markersize=1)
plt.plot(obstacle.x_vertices, obstacle.y_vertices, 'k')

Can be fixed with either:

plt.plot(list(obstacle.x_vertices), list(obstacle.y_vertices), 'k')

or

obs_x, obs_y = obstacle.x_vertices, obstacle.y_vertices
plt.plot(obs_x, obs_y, 'k')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant