MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / CaptureWorker

Class CaptureWorker

deeplabcut/gui/utils.py:37–46  ·  view source on GitHub ↗

A worker that captures outputs from methods that are run.

Source from the content-addressed store, hash-verified

35
36
37class CaptureWorker(Worker):
38 """A worker that captures outputs from methods that are run."""
39
40 def __init__(self, func: Callable):
41 super().__init__(func)
42 self.outputs = None
43
44 def run(self):
45 self.outputs = self.func()
46 self.finished.emit()
47
48
49def move_to_separate_thread(func: Callable, capture_outputs: bool = False):

Callers 1

move_to_separate_threadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected