Skip to content

IndexError: too many indices for array #33

@lavachemist

Description

@lavachemist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions