Skip to content

Commit

Permalink
Fix spurious addition of 'shapeFun' to ignoredStrParams.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Jul 19, 2016
1 parent 86a09c0 commit ac7b59c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions QGL/PulseSequencer.py
Expand Up @@ -105,12 +105,15 @@ def TAPulse(label,
amp,
phase=0,
frameChange=0,
ignoredStrParams=[]):
ignoredStrParams=None):
"""
Creates a time/amplitude pulse with the given pulse length and amplitude
"""
params = {'length': length, 'shapeFun': PulseShapes.constant}
ignoredStrParams.append('shapeFun')
if ignoredStrParams:
ignoredStrParams.append('shapeFun')
else:
ignoredStrParams = ['shapeFun']
return Pulse(label, channel, params, amp, phase, frameChange, ignoredStrParams)


Expand Down

0 comments on commit ac7b59c

Please sign in to comment.