mantidproject / mantid

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

Add config file support for Sans2d calibration #35980

Open rbauststfc opened 1 year ago

rbauststfc commented 1 year ago

Is your feature request related to a problem? Please describe.

Sans2d currently use the SANSTubeCalibration and SANSTubeMerge algorithms to perform their calibration. Algorithm SANSTubeCalibration takes a large number of parameters and the scientists would like an easy way to both save a record of the parameters used for each calibration, and to be able to easily pass and troubleshoot those parameters to the algorithm without entering them all individually. The algorithm will be run infrequently, so there needs to be an easy way to run it again using the correct parameter values. It should be possible to see both front and rear detector values together in a file for ease of use.

See precise requirements for this here.

Describe the solution you'd like

They would like a human-readable file format. A TOML user file, similar to what they are already familiar with, would be ideal.

Describe alternatives you've considered

We discussed whether Mantid history could be useful for this in any way, as it would be stored with the output calibration file and show the parameters that were used. Our scientists felt that it wasn't sufficiently easy to read and that they would find it easier to work with a TOML user file, which is more consistent with their existing ways of working.

Additional context

There is other upcoming work that we expect to require a TOML config file for inputting parameters to algorithms. If we can set this up in a way that may be useful for other algorithms then that would be beneficial.

rbauststfc commented 1 year ago