Hello, I hope this question isn’t too basic for this space — I’m currently working on reducing backscattering data and essentially looping over the InelasticInterfacePythonExport.py
script as a template to batch-reduce my data. I’d like to implement detector grouping using the Groups
parameter, but I’m having trouble understanding how the grouping is actually applied via the script. From what I can tell, grouping seems to be handled by repeatedly calling AppendSpectra
after the rebinning step into a “cojoined”-variable:
conjoined = AppendSpectra(InputWorkspace1=__temp, InputWorkspace2=__temp, Version=1, StoreInADS=False)
conjoined = AppendSpectra(InputWorkspace1=conjoined, InputWorkspace2=__temp, Version=1, StoreInADS=False) and so on…
However, I don’t seem to understand the documentation or GitHub repository regarding this. This cojoined-variable is repeatedly called and “AppendSpectra” would add one evenly spaced subgroup of the full detector range. But it never calls the workspace i created previously and this _temp workspace is not defined outside of AppendSpectra in InelasticInterfacePythonExport.py
. Because of this (I believe) with my modified script (either as a standalone Python script ran via my WSL2 terminal on Ubuntu, or within the Editor on the Mantid GUI on Windows), I get errors that __temp
is not found. It will only run when I execute the Indirect > Data Reduction tab in the GUI but never via a python interface.