moonshot-nagayama-pj / PnPQ

Python package for Controlling Optical Devices in Quantum Testbed
Other
0 stars 0 forks source link

Refactor PnPQ APIs to be context managers #28

Open auspicacious opened 2 months ago

auspicacious commented 2 months ago

Most devices managed by PnPQ require some sort of connection to be opened before commands are sent. This is perfect for the context manager pattern in Python, e.g. the with statement.

Prerequisites

Acceptance criteria