Commit 5d337823 authored by gvardany's avatar gvardany
Browse files

improve error message, the doc

parent 0ff01038
......@@ -209,8 +209,9 @@ class SANSILLAutoProcess(DataProcessorAlgorithm):
qbinning = self.getPropertyValue('OutputBinning')
if qbinning:
n_items = qbinning.count(':') + 1
if n_items != len(self.sample) and n_items != 1:
retval = 'Number of Q binning params must be equal to the number of distances.'
n_samples = len(self.sample)
if n_items != n_samples and n_items != 1:
retval = f'Number of Q binning params must be equal to the number of distances; found {n_items} instead of {n_samples}.'
for qbin_params in qbinning.split(':'):
if qbin_params:
......@@ -17,6 +17,15 @@ One can use water reference measurement in order to derive the relative inter-pi
The regular output will contain fully corrected water run, and there will be an additional output containing the sensitivity map itself.
The sensitivity map, as well as reduced water can be saved out to a file and used for sample reductions.
This property can be used to set manual q-binning parameters per detector distance/configuration.
This accepts a string, which must be `:` delimited sets of binning parameters per distance.
The reason it is a string, is that at a given configuration the parameters set can be composed of `,` separated values (such as start, width, end).
In fact, it could be even more complicated. See the semantics in :ref:`SANSILLIntegration <algm-SANSILLIntegration>`.
If one parameter set is provided, i.e. there is no `:`, the same parameter set will be used for all the detector distances/configurations.
Caching with ADS
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment