mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
207 stars 122 forks source link

Stitch1DMany Algorithm cant be run from the GUI #37619

Open yusufjimoh opened 4 days ago

yusufjimoh commented 4 days ago

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.