Example #1
0
 def finalize(self):
     general_stop_event.set()
     self.stop_free_run()
     time.sleep(.5)
     self.stop_save_stream()
     self.location.finalize()
     super().finalize()
Example #2
0
 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()
Example #3
0
    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()