Skip to content

ValueError: 'bytesize' is not a valid attribute for type SerialInstrument #83

@Bodeeen

Description

@Bodeeen

Hi,
I'm using the lantz Cobolt0601 driver to control a laser. When using the legacy driver everything works fine. But when changing to the new driver using MessageBasedDriver instead of SerialDriver i get the above error when initializing the laser. If, however, I comment line 23 in Cobolt0601.py where the "bytesize = 8" is everything works fine again.

from lantz.drivers.cobolt.cobolt0601 import Cobolt0601

laser = Cobolt0601('COM10')
laser.initialize() #This line gives error

Is this some compatibility issue or a bug in the code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions