Skip to content

Commit

Permalink
Good turn count
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Feb 23, 2024
1 parent 25a6d8d commit e4695de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/coasting/002_try_to_simplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def track(self, particles):

# Update zeta for particles that are stopped
particles.zeta[mask_stop] += beta0_beta1 * self.circumference
particles.at_turn[mask_stop] += 1
particles.pdg_id[mask_stop] += 1 # HACK!!!!!

# Stop particles
Expand Down Expand Up @@ -123,8 +122,8 @@ def y_mean_hist(line, particles):
plt.xlabel('Turn')

plt.figure(2)
plt.plot(p.delta, p.pdg_id, '.')
plt.ylabel('Missing turns')
plt.plot(p.delta, p.at_turn, '.')
plt.ylabel('Number of turns')
plt.xlabel(r'$\delta$')

plt.figure(3)
Expand Down

0 comments on commit e4695de

Please sign in to comment.