Skip to content

Commit

Permalink
Don't inject duplicate 'shapeFun's in ignoredStrParams.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Oct 17, 2016
1 parent a171f9b commit 8980b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QGL/PulseSequencer.py
Expand Up @@ -111,7 +111,8 @@ def TAPulse(label,
"""
params = {'length': length, 'shapeFun': PulseShapes.constant}
if ignoredStrParams:
ignoredStrParams.append('shapeFun')
if 'shapeFun' not in ignoredStrParams:
ignoredStrParams.append('shapeFun')
else:
ignoredStrParams = ['shapeFun']
return Pulse(label, channel, params, amp, phase, frameChange, ignoredStrParams)
Expand Down

0 comments on commit 8980b83

Please sign in to comment.