Skip to content

System

pychilaslasers.system.System(laser: Laser)

Container for key laser attributes.

Provides access to hardware and firmware metadata, serial number, and uptime. Attributes are read-only and may be lazily computed.

Parameters:

  • laser (Laser) –

    The parent Laser instance.

Attributes:

  • hw_version (str) –

    Hardware version of the laser.

  • fw_version (str) –

    Firmware version.

  • serial_no (str) –

    Laser serial number.

  • uptime (float) –

    Time elapsed since laser startup (seconds).

Attributes:

  • hw_version

    hardware version of the laser

  • fw_version

    version of the firmware running on the laser

  • serial_no

    serial number of the laser

  • uptime

    the amount of time that has passed since the laser was turned on.

Parameters:

  • laser (Laser) –

    laser of which system this is a component of

Source code in src/pychilaslasers/system.py
32
33
34
35
36
37
38
39
40
41
42
43
44
def __init__(self, laser: Laser) -> None:
    """System class acts as a container for some of the laser attributes.

    Attributes:
        hw_version: hardware version of the laser
        fw_version: version of the firmware running on the laser
        serial_no: serial number of the laser
        uptime:    the amount of time that has passed since the laser was turned on.

    Args:
        laser: laser of which system this is a component of
    """
    self._comm: Communication = laser.comm

Attributes

hw_version: str cached property

Hardware version of the laser as a string.

Hardware version of the laser in x.y.z format, possibly with a single character variant suffix.

fw_version: str cached property

Firmware version running on the laser.

Firmware version of the laser in x.y.z format, possibly with a single character variant suffix.

serial_no: str cached property

Serial number of the laser.

uptime: int property

System uptime in seconds.

Functions