def finalize(self): general_stop_event.set() self.stop_free_run() time.sleep(.5) self.stop_save_stream() self.location.finalize() super().finalize()
def finalize(self): general_stop_event.set() self.monitoring_pixels = False self.stop_free_run() time.sleep(.5) self.stop_save_stream() #self.location.finalize() super().finalize()
def __exit__(self, *args): self.empty_saver_queue() self.empty_locations_queue() if self.save_stream_running: self.logger.info('Stopping the saver process') self.stop_save_stream() if self.link_particles_running: self.stop_link_particles() general_stop_event.set()