Skip to content

Commit

Permalink
pulses.plotting.iter_waveforms no longer raises StopIteration but ret…
Browse files Browse the repository at this point in the history
…urns instead to get rid of deprecation warning.
  • Loading branch information
lumip committed May 30, 2018
1 parent e4c4717 commit bbcd5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qctoolkit/pulses/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def iter_waveforms(instruction_block: AbstractInstructionBlock,
raise NotImplementedError("Instruction block contains an unexpected GOTO instruction.")
return
elif isinstance(instruction, STOPInstruction):
raise StopIteration()
return
else:
raise NotImplementedError('Rendering cannot handle instructions of type {}.'.format(type(instruction)))

Expand Down

0 comments on commit bbcd5f8

Please sign in to comment.