| 506 | } |
| 507 | |
| 508 | bool QmitknnInteractiveToolGUI::RunUpdate(bool clientOnly) |
| 509 | { |
| 510 | const auto venvName = this->GetTool()->GetVirtualEnvName(); |
| 511 | auto spec = mitk::nnInteractive::BuildUpgradeSpec(venvName, clientOnly); |
| 512 | |
| 513 | QmitkPipInstallDialog dialog(spec, this, QmitkPipInstallDialog::Mode::Update); |
| 514 | |
| 515 | if (dialog.exec() != QDialog::Accepted) |
| 516 | return false; |
| 517 | |
| 518 | // Recreate the context so the interpreter sees the upgraded packages. Safe |
| 519 | // because an in-place update is only reached when no nnInteractive modules are |
| 520 | // loaded (see OfferInPlaceUpdate). |
| 521 | return this->GetTool()->CreatePythonContext(); |
| 522 | } |
| 523 | |
| 524 | bool QmitknnInteractiveToolGUI::OfferInPlaceUpdate(const mitk::nnInteractive::VersionCheckResult& versionCheck, bool clientOnly) |
| 525 | { |
no test coverage detected