Skip to content

Commit

Permalink
Fix pulse slicing code to advance to next train on same pulse ID
Browse files Browse the repository at this point in the history
  • Loading branch information
philsmt committed Nov 20, 2024
1 parent df2e03a commit 0978698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extra/components/_adq.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def _reshape_flat_pulses(
for i in range(pulse_ids.shape[0]):
cur_pid = pulse_ids[i]

if cur_pid < prev_pid:
# Pulse ID decreasing means a new train started.
if cur_pid <= prev_pid:
# Pulse ID not increasing means a new train started.
pid_offset = cur_pid
j += 1

Expand Down

0 comments on commit 0978698

Please sign in to comment.