mantidproject / mantid

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

Error in ISIS SANS GUI when scaling merged reduction with fit while plot results is selected #37577

Open rbauststfc opened 1 week ago

rbauststfc commented 1 week ago

Original reporter: Steve from the SANS Group at ISIS, on behalf of a facility user

Describe the bug

When performing a merged reduction, if the option to scale using a fit is selected along with the option to plot the results then an error is encountered. Among other things, this prevents outputs being saved to file, if requested.

Using either of these options separately does not cause an issue - i.e. a merged reduction that doesn't use a scale fit but plots the results completes successfully, as does a merged reduction that uses the scale fit but does not plot the results. It's using both together that produces the error.

To Reproduce

1) Go to Interfaces->SANS->ISIS SANS 1) At the top of the Runs page, load the user file MaskFile.toml from the loqdemo folder in the TrainingCourseData. 1) Load the batch_mode_reduction.csv file from the loqdemo folder in the TrainingCourseData. 1) Navigate to the Settings page from the left hand menu. Under the General, Scale, Event Slice, Sample tab change the following:

wrapped C/C++ object of type QAction has been deleted

If the save options are set to save to a file (i.e. if option File or Both has been selected at the bottom of the Runs page) then no outputs are saved, so it appears that some of the final stages of the reduction workflow are not completing.

Expected behavior

We have discussed this functionality with the SANS Group and they explained that it's not really used by instrument scientists and rarely used/use is discouraged for facility users. As a result, this should be resolved in any of the following ways according to which is the quickest:

The problem caused quite a bit of confusion and took up several people's time to diagnose, which is why we would like to prevent it being encountered again in future. It is otherwise considered low priority, though.

After discussion with the SANS Group, they have confirmed a preference to go for option A. If after three versions of Mantid there have been no problems then we should remove the checkbox altogether (i.e. complete option B). If the conclusion is that the functionality should be retained then we fix the bug (i.e. complete option C). Implementation of the long-term solution should be done under a separate ticket.

Platform/Version (please complete the following information):