From 86a09c08628e9bb6a6a91f60fb518de9a1df4f76 Mon Sep 17 00:00:00 2001 From: "Blake R. Johnson" Date: Tue, 19 Jul 2016 17:06:43 -0400 Subject: [PATCH] Fix length update of gating pulses. --- QGL/PatternUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QGL/PatternUtils.py b/QGL/PatternUtils.py index 801bb20d..a3578ef6 100644 --- a/QGL/PatternUtils.py +++ b/QGL/PatternUtils.py @@ -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