LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
81 stars 16 forks source link

Reset Block after cleanup #45

Closed WeisLeDocto closed 1 year ago

WeisLeDocto commented 1 year ago

With this PR the Block object is now reset (by means of the Block.reset() method) at the end of each call to Block._cleanup(). It cleans up all the references to the instantiated Blocks, as well as the synchronization objects and other instantiated multiprocessing objects. These references and objects are anyway not of any use at that point anymore.

Users now don't need to manually call crappy.reset() before being able to restart a script.