Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 834 Bytes

File metadata and controls

24 lines (14 loc) · 834 Bytes

Python LECO Examples

This folder contains minimal Python examples of LECO actors for PyMoDAQ, mainly intended for learning how to implement the LECO protocol.

Two versions are provided:

  • modern/ – With type hints and f-strings, to better understand how to interact with LECO.
  • compatibility/ – For compatibility with Python <3.5 (no type hints, no f-strings).

Both versions implement the same logic and differ only in syntax/compatibility.

Structure

Each version contains:

  • instrument.py: Provides JSONActuator and JSONDetector, interfaces between a Python driver/wrapper and the LECO protocol logic.
  • network.py: Interface to the LECO communication layer.
  • actuator.py: Entry point to run the actuator
  • detector.py: Entry point to run the detector