Skip to content

Commit 668ae5b

Browse files
committedMay 31, 2017
fixed hardcoded max_instructions in error message
1 parent e1aa131 commit 668ae5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎PulseBlaster.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def convert_to_pb_inst(self, dig_outputs, dds_outputs, freqs, amps, phases):
509509
raise AssertionError('Invalid programming scheme %s'%str(self.programming_scheme))
510510

511511
if len(pb_inst) > self.max_instructions:
512-
raise LabscriptError("The Pulseblaster memory cannot store more than 4000 instuctions, but the PulseProgram contains {:d} instructions.".format(len(pb_inst)))
512+
raise LabscriptError("The Pulseblaster memory cannot store more than {:d} instuctions, but the PulseProgram contains {:d} instructions.".format(self.max_instructions, len(pb_inst)))
513513

514514
return pb_inst
515515

0 commit comments

Comments
 (0)
Failed to load comments.