MyTooliT / ICOc

ICOc is a tool to control the ICOtronic system, acquire data, and test stationary transceiver units and sensory tool holders.
https://mytoolit.github.io/ICOc/
2 stars 0 forks source link

Storage: Separate Class and Context Manager #55

Closed sanssecours closed 1 month ago

sanssecours commented 8 months ago

Description

Some public methods of the class for storing HDF files (Storage) currently require that the HDF file represented by the object is open. This means you have to use the context manager of the class before you call these methods, which makes using the class incorrectly too easy. Ideally we should separate the context manager from the object that reads the file.