Stitch1DMany cannot be run from the algorithm Execute dialog in the Workbench GUI because the validation (i.e. the validateInputs method) seems to run twice when called this way. The variable m_inputWSMatrix that holds the workspaces to be stitched is therefore populated twice as part of the validation, which means that on the second run it fails when we check that the number of workspaces matches the length of the input string.
Summary of work
The clear method is called on m_inputWSMatrix to ensure it is empty before it is used in the validateInputs method.
Description of work
Stitch1DMany cannot be run from the algorithm Execute dialog in the Workbench GUI because the validation (i.e. the validateInputs method) seems to run twice when called this way. The variable m_inputWSMatrix that holds the workspaces to be stitched is therefore populated twice as part of the validation, which means that on the second run it fails when we check that the number of workspaces matches the length of the input string.
Summary of work
The clear method is called on m_inputWSMatrix to ensure it is empty before it is used in the validateInputs method.