def OnExit(self):
     from imagej.imagej2 import allow_quit
     allow_quit()
     from cellprofiler.utilities.jutil import deactivate_awt
     deactivate_awt()
     # restore previous exception hook
     sys.excepthook = self.orig_excepthook
Esempio n. 2
0
 def OnExit(self):
     from imagej.imagej2 import allow_quit
     allow_quit()
     from cellprofiler.utilities.jutil import deactivate_awt
     deactivate_awt()
     # restore previous exception hook
     sys.excepthook = self.orig_excepthook
 def exit_thread(self):
     from bioformats.formatreader import clear_image_reader_cache
     self.notify_socket.close()
     clear_image_reader_cache()
     J.deactivate_awt()
     J.detach()
     if self.with_stop_run_loop:
         stop_run_loop()
 def exit_thread(self):
     from bioformats.formatreader import clear_image_reader_cache
     self.notify_socket.close()
     clear_image_reader_cache()
     J.deactivate_awt()
     J.detach()
     if self.with_stop_run_loop:
         stop_run_loop()
Esempio n. 5
0
 def tearDownClass(cls):
     from cellprofiler.utilities.jutil import deactivate_awt
     deactivate_awt()
 def exit_thread(self):
     self.notify_socket.close()
     J.deactivate_awt()
     J.detach()
     if self.with_stop_run_loop:
         stop_run_loop()
 def OnExit(self):
     from cellprofiler.utilities.jutil import deactivate_awt
     deactivate_awt()
Esempio n. 8
0
 def tearDownClass(cls):
     from cellprofiler.utilities.jutil import deactivate_awt
     deactivate_awt()
Esempio n. 9
0
 def exit_thread(self):
     self.notify_socket.close()
     J.deactivate_awt()
     J.detach()
     if self.with_stop_run_loop:
         stop_run_loop()
Esempio n. 10
0
 def OnExit(self):
     from cellprofiler.utilities.jutil \
         import deactivate_awt
     deactivate_awt()