OpenFL icon indicating copy to clipboard operation
OpenFL copied to clipboard

IndexError: too many indices for array

Open lavachemist opened this issue 4 years ago • 0 comments

I get an Index error when I run 'p.write_block(0, layer)'

"Traceback (most recent call last): File "", line 1, in File "c:\openfl-master\OpenFL\Printer.py", line 327, in write_block return self.write_block_flp(block, data) File "c:\openfl-master\OpenFL\Printer.py", line 350, in write_block_flp self.audit_laser_power_flp(flp) File "c:\openfl-master\OpenFL\Printer.py", line 299, in audit_laser_power_flp self.check_laser_ticks(p.power) File "c:\openfl-master\OpenFL\Printer.py", line 304, in check_laser_ticks mW = self.ticks_to_mW(power) File "c:\openfl-master\OpenFL\Printer.py", line 513, in ticks_to_mW self._laser_table[:,0] * float(0xffff) / 3.3, IndexError: too many indices for array"

image

lavachemist avatar Apr 28 '20 16:04 lavachemist