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 1a7bd8a commit 4beaf4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QGL/PulseSequencer.py
Original file line number Diff line number Diff line change
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 4beaf4e

Please sign in to comment.