validate.gui.worker#
Background threads (ensures installing AI models, running segmentation and evaluating dosimetric models never blocks the GUI thread.
Functions
|
Terminate this process's child processes and their children (AI model inference, git, uv, weights downloads), killing any still running after timeout s. |
Classes
|
Derives the modelled structures only, without NTCP (run.deriveStructuresForCohort). |
|
Runs installMissingModels off the GUI thread. |
|
Derives modelled structures and computes NTCP (run.applyModelToCohort). |
|
Applies a selected method (Segment/Model) to the entire cohort, maintaining a distinct error log, progress, and a stop request that takes effect before the next patient. |
|
Runs selected AI models (run.applyAutoSegToCohort). |
- validate.gui.worker.killChildProcesses(timeout=3)[source]#
Terminate this process’s child processes and their children (AI model inference, git, uv, weights downloads), killing any still running after timeout s.
- class validate.gui.worker.InstallWorker(*args, **kwargs)[source]#
Bases:
QThreadRuns installMissingModels off the GUI thread. Supports AI model installation (git clone + weights download + env creation) without blocking the window.
- stage#
alias of
str
- finishedOk#
alias of
list
- failed#
alias of
str
- class validate.gui.worker.RunWorker(*args, **kwargs)[source]#
Bases:
QThreadApplies a selected method (Segment/Model) to the entire cohort, maintaining a distinct error log, progress, and a stop request that takes effect before the next patient.
- stage#
alias of
str
- progress#
alias of
int
- finishedOk#
alias of
object
- failed#
alias of
str
- class validate.gui.worker.SegmentWorker(*args, **kwargs)[source]#
Bases:
RunWorkerRuns selected AI models (run.applyAutoSegToCohort).