Skip to content

Commit

Permalink
🐛 updating wrong object when concatenating marker pulses
Browse files Browse the repository at this point in the history
  • Loading branch information
caryan committed Jul 12, 2016
1 parent ae89b5f commit f259e23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions QGL/PatternUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def apply_gating_constraints(chan, linkList):

# matching entry types can be globbed together
if previousEntry.isZero == entry.isZero:
miniLL[ct-1] = update_pulse_length(previousEntry, previousEntry.length + entry.length)
previousEntry = update_pulse_length(previousEntry, previousEntry.length + entry.length)
else:
gateSeq.append(previousEntry)
previousEntry = entry
Expand Down Expand Up @@ -174,7 +174,6 @@ def apply_gating_constraints(chan, linkList):
del gateSeq[ct + 1:ct + 3]
else:
ct += 1

gateSeqs.append(gateSeq)

return gateSeqs
Expand Down

0 comments on commit f259e23

Please sign in to comment.