Skip to content

Commit

Permalink
Fix length update of gating pulses.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Jul 19, 2016
1 parent cd4f4bd commit 86a09c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QGL/PatternUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def update_pulse_length(pulse, new_length):
#copy shape parameter dictionary to avoid updating other copies
new_params = copy(pulse.shapeParams)
new_params["length"] = new_length
return pulse._replace(shapeParams=new_params)
return pulse._replace(shapeParams=new_params, length=new_length)

def apply_gating_constraints(chan, linkList):
# get channel parameters in samples
Expand Down

0 comments on commit 86a09c0

Please sign in to comment.