| 87 | }; |
| 88 | |
| 89 | void |
| 90 | ParameterFitBackgroundJob:: |
| 91 | run() |
| 92 | { |
| 93 | try |
| 94 | { |
| 95 | emit JobStatusChanged(QString("Started fit session.Generate UID: ")+QString::fromStdString(m_ModelFitInfo->uid)); |
| 96 | |
| 97 | m_Generator->Generate(); |
| 98 | |
| 99 | emit JobStatusChanged(QString("Generate result nodes.")); |
| 100 | |
| 101 | m_Results = mitk::modelFit::CreateResultNodeMap(m_Generator->GetParameterImages(), m_Generator->GetDerivedParameterImages(), m_Generator->GetCriterionImages(), m_Generator->GetEvaluationParameterImages(), m_ModelFitInfo); |
| 102 | |
| 103 | emit ResultsAreAvailable(m_Results, this); |
| 104 | } |
| 105 | catch (::std::exception& e) |
| 106 | { |
| 107 | emit Error(QString("Error while fitting data. Details: ")+QString::fromLatin1(e.what())); |
| 108 | } |
| 109 | catch (...) |
| 110 | { |
| 111 | emit Error(QString("Unknown error when fitting the data.")); |
| 112 | } |
| 113 | |
| 114 | emit Finished(); |
| 115 | }; |
nothing calls this directly
no test coverage detected