You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ostr << "Port not found, it may need initializing the module constructor. " << std::endl << "Message: " << e.what() << std::endl;
279
280
error(ostr.str());
280
281
}
282
+
catch (AlgorithmParameterNotFound& e)
283
+
{
284
+
std::ostringstream ostr;
285
+
ostr << "State key not found, it may need initializing in ModuleClass::setStateDefaults(). " << std::endl << "Message: " << e.what() << std::endl;
286
+
error(ostr.str());
287
+
}
281
288
catch (Core::ExceptionBase& e)
282
289
{
283
290
/// @todo: this block is repetitive (logging-wise) if the macros are used to log AND throw an exception with the same message. Figure out a reasonable condition to enable it.
auto atlasMeshLabels_ = getOptionalInput(AtlasMeshLabels);
64
65
auto coordinateSpace_ = getOptionalInput(CoordinateSpace);
65
66
auto coordinateSpaceLabel_ = getOptionalInput(CoordinateSpaceLabel);
66
-
67
-
setAlgoListFromState(Parameters::StatisticsTableValues); /// to transfer data between algo and dialog use the state variable
68
-
67
+
68
+
setAlgoListFromState(Parameters::StatisticsTableValues); /// to transfer data between algo and dialog use the state variable
69
+
69
70
auto roiSpec = transient_value_cast<DenseMatrixHandle>(get_state()->getTransientValue(GenerateROIStatisticsAlgorithm::SpecifyROI)); /// transfer the ROI specification from GUI dialog as additional input
70
71
//algorithm input and run
71
72
auto input = make_input((MeshDataOnElements, meshData_)(PhysicalUnit, optionalAlgoInput(physicalUnit_))(AtlasMesh, atlasMesh_)(AtlasMeshLabels,
auto output = algo().run(input); /// call run generic
79
78
80
-
auto table = output.additionalAlgoOutput(); /// get the two outputs, the upper table (as DenseMatrix) and the container that establishes data transfer between GUI/Algo via state
79
+
auto output = algo().run(input); /// call run generic
80
+
81
+
auto table = output.additionalAlgoOutput(); /// get the two outputs, the upper table (as DenseMatrix) and the container that establishes data transfer between GUI/Algo via state
0 commit comments