Data reduction logic for measurements done at the TU Delft Reactor Institute with the new SANS instrument using Mantid. Enables loading generated .mpa files as Mantid workspaces and reducing these to NeXuS files that can be loaded into SasView and similar tools for analysis.
First, Mantid v6.10 needs to be installed. The recommended way is to install it as a conda package as explained on the Mantid installation page. As Mantid specifically requires Python 3.10, it is recommended to first install Mamba and use this instead of Conda. The reason for this is that Mamba is better at resolving specific requirements such as the specific Python version, meaning that you might run into errors when trying to create an environment using conda
commands.
The recommended way to install Mamba is to use the latest version of the installer for your platform found in conda-forge distribution.
Upon successful installation of Mamba, Mantid can be installed using
mamba create -n mantid_env -c mantid mantidworkbench
This environment can then be activated using
mamba activate mantid_env
Having installed Mantid, this repository can be cloned (or downloaded)
Finally, the main ridsans
package can be installed together with its dependencies using
pip install -e .
Make sure to do this within the previously created environment by activating it if needed.
For usage instructions, have a look at the manual.
ruff is used as a formatter and linter and can be installed using pip install ruff
.